ethtool: Provide a default implementation of ethtool_ops::get_drvinfo
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 17 Aug 2010 09:31:15 +0000 (02:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2010 09:31:15 +0000 (02:31 -0700)
commit01414802054c382072b6cb9a1bdc6e243c74b2d5
treef09b05eb9fff16a69d83ec28653992d1bae8d74c
parentbb8a10bbd10a45db0eb45bac520489bdbc0917ef
ethtool: Provide a default implementation of ethtool_ops::get_drvinfo

The driver name and bus address for a net_device can normally be found
through the driver model now.  Instead of requiring drivers to provide
this information redundantly through the ethtool_ops::get_drvinfo
operation, use the driver model to do so if the driver does not define
the operation.  Since ETHTOOL_GDRVINFO no longer requires the driver
to implement any operations, do not require net_device::ethtool_ops to
be set either.

Remove implementations of get_drvinfo and ethtool_ops that provide
only this information.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 files changed:
drivers/firewire/net.c
drivers/ieee1394/eth1394.c
drivers/net/bmac.c
drivers/net/fec_mpc52xx.c
drivers/net/pasemi_mac_ethtool.c
drivers/net/pcmcia/3c574_cs.c
drivers/net/pcmcia/axnet_cs.c
drivers/net/pcmcia/ibmtr_cs.c
drivers/net/pcmcia/pcnet_cs.c
drivers/net/sc92031.c
drivers/net/tulip/xircom_cb.c
drivers/net/usb/hso.c
drivers/net/usb/kaweth.c
drivers/net/virtio_net.c
drivers/net/wireless/ray_cs.c
drivers/net/wireless/wl3501_cs.c
net/core/ethtool.c