Allow package/switch to compile against 2.6.25
SVN-Revision: 11138
This commit is contained in:
parent
9b340cf3df
commit
72d40dec08
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue