From da94d4ac290799510dccd3bfa1f47db33911726d Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 22 Sep 2012 12:29:23 +0000 Subject: switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver SVN-Revision: 33506 --- package/switch/src/switch-robo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c index 5b849cb33d..f1160c8894 100644 --- a/package/switch/src/switch-robo.c +++ b/package/switch/src/switch-robo.c @@ -269,6 +269,10 @@ static int robo_probe(char *devname) printk("No such device\n"); return 1; } + if (!robo.dev->netdev_ops || !robo.dev->netdev_ops->ndo_do_ioctl) { + printk("ndo_do_ioctl not implemented in ethernet driver\n"); + return 1; + } robo.device = devname; for (i = 0; i < 5; i++) -- cgit v1.2.3