patch-2.1.126 linux/drivers/net/plip.c
Next file: linux/drivers/net/sdla_fr.c
Previous file: linux/drivers/net/ni65.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Fri Oct 9 12:20:27 1998
- Orig file:
v2.1.125/linux/drivers/net/plip.c
- Orig date:
Thu Sep 17 17:53:36 1998
diff -u --recursive --new-file v2.1.125/linux/drivers/net/plip.c linux/drivers/net/plip.c
@@ -242,7 +242,10 @@
pardev = parport_register_device(pb, dev->name, plip_preempt,
plip_wakeup, plip_interrupt,
- PARPORT_DEV_LURK, dev);
+ 0, dev);
+
+ if (!pardev)
+ return -ENODEV;
printk(KERN_INFO "%s", version);
printk(KERN_INFO "%s: Parallel port at %#3lx, using IRQ %d\n", dev->name,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov