patch-2.2.0-pre9 linux/drivers/pnp/parport_probe.c
Next file: linux/drivers/scsi/aha152x.c
Previous file: linux/drivers/pci/pci.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Wed Jan 20 13:29:18 1999
- Orig file:
v2.2.0-pre8/linux/drivers/pnp/parport_probe.c
- Orig date:
Tue Dec 22 14:16:56 1998
diff -u --recursive --new-file v2.2.0-pre8/linux/drivers/pnp/parport_probe.c linux/drivers/pnp/parport_probe.c
@@ -105,13 +105,13 @@
parport_claim_or_block(dev);
switch (parport_ieee1284_nibble_mode_ok(port, 4)) {
- case 1:
+ case 2:
current->state=TASK_INTERRUPTIBLE;
/* HACK: wait 10ms because printer seems to ack wrong */
schedule_timeout((HZ+99)/100);
result = read_polled(port, buffer, len);
break;
- case 0:
+ default:
result = -EIO;
break;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov