diff options
author | Peter Denison <openwrt@marshadder.org> | 2008-05-14 15:03:05 +0000 |
---|---|---|
committer | Peter Denison <openwrt@marshadder.org> | 2008-05-14 15:03:05 +0000 |
commit | 2ad42a8a5abfdcb6c193c1883daf80022f86a4cc (patch) | |
tree | e1ea947d91d7b75af9f63d1942f9654c193f69a5 /package/switch/src | |
parent | db2822f8308e804c8a621e9e61cff6771e1f8040 (diff) | |
download | upstream-2ad42a8a5abfdcb6c193c1883daf80022f86a4cc.tar.gz upstream-2ad42a8a5abfdcb6c193c1883daf80022f86a4cc.tar.bz2 upstream-2ad42a8a5abfdcb6c193c1883daf80022f86a4cc.zip |
Allow package/switch to compile against 2.6.25
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11138 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src')
-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 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; } |