projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b340cf
)
Allow package/switch to compile against 2.6.25
author
Peter Denison
<openwrt@marshadder.org>
Wed, 14 May 2008 15:03:05 +0000
(15:03 +0000)
committer
Peter Denison
<openwrt@marshadder.org>
Wed, 14 May 2008 15:03:05 +0000
(15:03 +0000)
SVN-Revision: 11138
package/switch/src/switch-robo.c
patch
|
blob
|
history
diff --git
a/package/switch/src/switch-robo.c
b/package/switch/src/switch-robo.c
index 28d8de326b96433da3ee46fde04026f4d00fa194..045dce1c4b7aad079cbc36dbffa5e069875ce8ef 100644
(file)
--- a/
package/switch/src/switch-robo.c
+++ b/
package/switch/src/switch-robo.c
@@
-296,7
+296,11
@@
static int robo_probe(char *devname)
printk(KERN_INFO PFX "Probing device %s: ", devname);
strcpy(robo.ifr.ifr_name, devname);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
if ((robo.dev = dev_get_by_name(devname)) == NULL) {
+#else
+ if ((robo.dev = dev_get_by_name(&init_net, devname)) == NULL) {
+#endif
printk("No such device\n");
return 1;
}