]> git.karo-electronics.de Git - karo-tx-linux.git/commit
3c509.c: call SET_NETDEV_DEV for all device types (ISA/ISAPnP/EISA)
authorMatthew Whitehead <tedheadster@gmail.com>
Mon, 29 Apr 2013 21:46:53 +0000 (17:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 17:04:43 +0000 (10:04 -0700)
commitbe8fd5041900f0d8233ca61119477b28ca7df6e0
tree5c80661b8a18e06ddf7ecf531756848df6f70d45
parenta0464b18acc3f17ff86aa25df34c5066a21c8291
3c509.c: call SET_NETDEV_DEV for all device types (ISA/ISAPnP/EISA)

[ Upstream commit 3b54912f9cd167641b91d4a697bd742f70e534fe ]

The venerable 3c509 driver only sets its device parent in one case, the ISAPnP one.
It does this with the SET_NETDEV_DEV function. It should register with the device
hierarchy in two additional cases: standard (non-PnP) ISA and EISA.

- Currently they appear here:
/sys/devices/virtual/net/eth0 (standard ISA)
/sys/devices/virtual/net/eth1 (EISA)

- Rather, they should instead be here:
/sys/devices/isa/3c509.0/net/eth0 (standard ISA)
/sys/devices/pci0000:00/0000:00:07.0/00:04/net/eth1 (EISA)

Tested on ISA and EISA boards.

Signed-off-by: Matthew Whitehead <tedheadster@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/3c509.c