diff options
author | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-09-26 11:48:48 +0000 |
---|---|---|
committer | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-09-26 11:48:48 +0000 |
commit | f4aa4e469c3b1a1734f4b5e6cddfd55dc5fff0ec (patch) | |
tree | 6735a7cc6594726fb07186dbe9d33f81ecf9f664 /package/switch | |
parent | acb3c6bb2e1bb9b1dc258cd53db3a514f8309520 (diff) |
[brcm47xx] add patches for kernel 2.6.31
This is completly untested. Only a compile tests with the default config was done!
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17734 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch')
-rw-r--r-- | package/switch/src/switch-robo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c index a0051a32f..206359d07 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; |