aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src/switch-robo.c
diff options
context:
space:
mode:
authorPeter Denison <openwrt@marshadder.org>2008-05-14 15:03:05 +0000
committerPeter Denison <openwrt@marshadder.org>2008-05-14 15:03:05 +0000
commit72d40dec08cc3ba71fc8d6e2e8156bfaddef54bf (patch)
treeb53ff2e9c2304b5f1e4bbaa89caad2ae198beba2 /package/switch/src/switch-robo.c
parent9b340cf3dfac28a05d7142d1528349e4ac860a16 (diff)
downloadupstream-72d40dec08cc3ba71fc8d6e2e8156bfaddef54bf.tar.gz
upstream-72d40dec08cc3ba71fc8d6e2e8156bfaddef54bf.tar.bz2
upstream-72d40dec08cc3ba71fc8d6e2e8156bfaddef54bf.zip
Allow package/switch to compile against 2.6.25
SVN-Revision: 11138
Diffstat (limited to 'package/switch/src/switch-robo.c')
-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 28d8de326b..045dce1c4b 100644
--- 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;
}