summaryrefslogtreecommitdiff
path: root/package/switch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2009-09-26 11:48:48 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2009-09-26 11:48:48 +0000
commit8673372e20aa8ef53946ae606e1746f6abc39b1a (patch)
treef637b6541d53e029025d5cc87eb296724891a39c /package/switch
parent6247141e7835a4bbf5850c9e94ae8c9a61eb20cf (diff)
downloadmtk-20170518-8673372e20aa8ef53946ae606e1746f6abc39b1a.zip
mtk-20170518-8673372e20aa8ef53946ae606e1746f6abc39b1a.tar.gz
mtk-20170518-8673372e20aa8ef53946ae606e1746f6abc39b1a.tar.bz2
add patches for kernel 2.6.31
This is completly untested. Only a compile tests with the default config was done! SVN-Revision: 17734
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 a0051a3..206359d 100644
--- a/package/switch/src/switch-robo.c
+++ b/package/switch/src/switch-robo.c
@@ -101,7 +101,11 @@ static int do_ioctl(int cmd, void *buf)
robo.ifr.ifr_data = (caddr_t) buf;
set_fs(KERNEL_DS);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
+ ret = robo.dev->netdev_ops->ndo_do_ioctl(robo.dev, &robo.ifr, cmd);
+#else
ret = robo.dev->do_ioctl(robo.dev, &robo.ifr, cmd);
+#endif
set_fs(old_fs);
return ret;