From f83ce0750324f8f04fce2b04df450c50a15892f8 Mon Sep 17 00:00:00 2001 From: Matus Kral Date: Sat, 25 Jul 2015 03:53:52 +0200 Subject: [PATCH] add ndo_poll_controller property to allow netcon --- drivers/net/usb/smsc95xx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 340a877eaf69..59ae078e114f 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -1101,6 +1101,12 @@ static int smsc95xx_reset(struct usbnet *dev) return 0; } +#ifdef CONFIG_NET_POLL_CONTROLLER +static void smsc95xx_poll_dummy(struct net_device *netdev) +{ +} +#endif + static const struct net_device_ops smsc95xx_netdev_ops = { .ndo_open = usbnet_open, .ndo_stop = usbnet_stop, @@ -1113,6 +1119,9 @@ static const struct net_device_ops smsc95xx_netdev_ops = { .ndo_eth_ioctl = smsc95xx_ioctl, .ndo_set_rx_mode = smsc95xx_set_multicast, .ndo_set_features = smsc95xx_set_features, +#ifdef CONFIG_NET_POLL_CONTROLLER + .ndo_poll_controller = smsc95xx_poll_dummy, +#endif }; static void smsc95xx_handle_link_change(struct net_device *net)