switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver
SVN-Revision: 33506
This commit is contained in:
parent
8f0d711550
commit
da94d4ac29
1 changed files with 4 additions and 0 deletions
|
@ -269,6 +269,10 @@ static int robo_probe(char *devname)
|
||||||
printk("No such device\n");
|
printk("No such device\n");
|
||||||
return 1;
|
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;
|
robo.device = devname;
|
||||||
for (i = 0; i < 5; i++)
|
for (i = 0; i < 5; i++)
|
||||||
|
|
Loading…
Reference in a new issue