summaryrefslogtreecommitdiff
path: root/package/switch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-09-22 12:29:23 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-09-22 12:29:23 +0000
commitda94d4ac290799510dccd3bfa1f47db33911726d (patch)
tree659aa36249f18f5acf06db90738e65d821e977cb /package/switch
parent8f0d7115500d269c27bf9ec2b88fb7d5234a0c03 (diff)
downloadmtk-20170518-da94d4ac290799510dccd3bfa1f47db33911726d.zip
mtk-20170518-da94d4ac290799510dccd3bfa1f47db33911726d.tar.gz
mtk-20170518-da94d4ac290799510dccd3bfa1f47db33911726d.tar.bz2
switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver
SVN-Revision: 33506
Diffstat (limited to 'package/switch')
-rw-r--r--package/switch/src/switch-robo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c
index 5b849cb..f1160c8 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++)