1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 17:15:00 +02:00

Allow package/switch to compile against 2.6.25

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11138 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
noz 2008-05-14 15:03:05 +00:00
parent 11770b809e
commit 8570a82f7c

View File

@ -296,7 +296,11 @@ static int robo_probe(char *devname)
printk(KERN_INFO PFX "Probing device %s: ", devname); printk(KERN_INFO PFX "Probing device %s: ", devname);
strcpy(robo.ifr.ifr_name, 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) { 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"); printk("No such device\n");
return 1; return 1;
} }