aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/smsc95xx.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index 3e6155a38f0c..dc1665326592 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -1008,6 +1008,18 @@ static int smsc95xx_reset(struct usbnet *dev)
1008 return 0; 1008 return 0;
1009} 1009}
1010 1010
1011static const struct net_device_ops smsc95xx_netdev_ops = {
1012 .ndo_open = usbnet_open,
1013 .ndo_stop = usbnet_stop,
1014 .ndo_start_xmit = usbnet_start_xmit,
1015 .ndo_tx_timeout = usbnet_tx_timeout,
1016 .ndo_change_mtu = usbnet_change_mtu,
1017 .ndo_set_mac_address = eth_mac_addr,
1018 .ndo_validate_addr = eth_validate_addr,
1019 .ndo_do_ioctl = smsc95xx_ioctl,
1020 .ndo_set_multicast_list = smsc95xx_set_multicast,
1021};
1022
1011static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf) 1023static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf)
1012{ 1024{
1013 struct smsc95xx_priv *pdata = NULL; 1025 struct smsc95xx_priv *pdata = NULL;
@@ -1038,9 +1050,8 @@ static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf)
1038 /* Init all registers */ 1050 /* Init all registers */
1039 ret = smsc95xx_reset(dev); 1051 ret = smsc95xx_reset(dev);
1040 1052
1041 dev->net->do_ioctl = smsc95xx_ioctl; 1053 dev->net->netdev_ops = &smsc95xx_netdev_ops;
1042 dev->net->ethtool_ops = &smsc95xx_ethtool_ops; 1054 dev->net->ethtool_ops = &smsc95xx_ethtool_ops;
1043 dev->net->set_multicast_list = smsc95xx_set_multicast;
1044 dev->net->flags |= IFF_MULTICAST; 1055 dev->net->flags |= IFF_MULTICAST;
1045 dev->net->hard_header_len += SMSC95XX_TX_OVERHEAD; 1056 dev->net->hard_header_len += SMSC95XX_TX_OVERHEAD;
1046 return 0; 1057 return 0;