From 271edd2142b909a010a5961cd8fe20b3290baaf2 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 a5560dfb80cf..92f755485388 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -1099,6 +1099,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, @@ -1111,6 +1117,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)