projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] lua: add the 100-no_readline.patch to host build
[openwrt.git]
/
package
/
switch
/
src
/
switch-robo.c
diff --git
a/package/switch/src/switch-robo.c
b/package/switch/src/switch-robo.c
index
95cb3e2
..
206359d
100644
(file)
--- a/
package/switch/src/switch-robo.c
+++ b/
package/switch/src/switch-robo.c
@@
-73,7
+73,7
@@
extern char *nvram_get(const char *name);
#define getvar(str) (nvram_get(str)?:"")
#else
extern char *nvram_get(const char *name);
#define getvar(str) (nvram_get(str)?:"")
#else
-#define getvar(str)
NULL
+#define getvar(str)
""
#endif
/* Data structure for a Roboswitch device. */
#endif
/* Data structure for a Roboswitch device. */
@@
-101,7
+101,11
@@
static int do_ioctl(int cmd, void *buf)
robo.ifr.ifr_data = (caddr_t) buf;
set_fs(KERNEL_DS);
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);
ret = robo.dev->do_ioctl(robo.dev, &robo.ifr, cmd);
+#endif
set_fs(old_fs);
return ret;
set_fs(old_fs);
return ret;
This page took
0.027795 seconds
and
4
git commands to generate.