patch-2.4.10 linux/drivers/parport/parport_pc.c
Next file: linux/drivers/parport/parport_serial.c
Previous file: linux/drivers/parport/parport_cs.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Fri Sep 7 18:15:17 2001
- Orig file:
v2.4.9/linux/drivers/parport/parport_pc.c
- Orig date:
Mon Aug 27 12:41:43 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/parport/parport_pc.c linux/drivers/parport/parport_pc.c
@@ -2756,17 +2756,20 @@
{
const struct pci_device_id *id;
struct pci_dev *pdev;
+ int ret = 0;
pci_for_each_dev(pdev) {
id = pci_match_device (parport_pc_pci_tbl, pdev);
if (id == NULL || id->driver_data >= last_sio)
continue;
- return parport_pc_superio_info[id->driver_data].probe
- (pdev, autoirq, autodma);
+ if (parport_pc_superio_info[id->driver_data].probe
+ (pdev, autoirq, autodma)) {
+ ret++;
+ }
}
- return 0; /* zero devices found */
+ return ret; /* number of devices found */
}
#else
static struct pci_driver parport_pc_pci_driver;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)