]> git.baikalelectronics.ru Git - kernel.git/commit
can: sja1000: stop misusing member base_addr of struct net_device
authorWolfgang Grandegger <wg@grandegger.com>
Sat, 30 May 2009 07:55:49 +0000 (07:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2009 09:53:34 +0000 (02:53 -0700)
commit58edc891c0840337dd212d09883786e3455bae88
tree317fd2edb63cfa222000cbfa4c4bed6da15c5420
parent9543b7de21dce00d51a94c82f16e2fb4e18439d4
can: sja1000: stop misusing member base_addr of struct net_device

As discussed on the netdev mailing list, the member "base_addr" of
"struct net_device" should not be (mis)used to store the virtual
address to the SJA1000 register area. According to David Miller,
it's only use is to allow ISA and similar primitive bus devices to
have their I/O ports changed via ifconfig. The virtual address is
now stored in the private data structure of the SJA1000 device and
the callback functions use "struct sja1000_priv" instead of the
unneeded "struct net_device".

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/sja1000/ems_pci.c
drivers/net/can/sja1000/kvaser_pci.c
drivers/net/can/sja1000/sja1000.c
drivers/net/can/sja1000/sja1000.h
drivers/net/can/sja1000/sja1000_platform.c