int __init ns558_init(void) { int i = 0; #ifdef NSS558_ISAPNP struct isapnp_device_id *devid; struct pci_dev *dev = NULL; #endif /* * Probe for ISA ports. */ while (ns558_isa_portlist[i]) ns558 = ns558_isa_probe(ns558_isa_portlist[i++], ns558); /* * Probe for PnP ports. */ #ifdef NSS558_ISAPNP for (devid = pnp_devids; devid->vendor; devid++) { while ((dev = isapnp_find_dev(NULL, devid->vendor, devid->function, dev))) { ns558 = ns558_pnp_probe(dev, ns558); } } #endif return ns558 ? 0 : -ENODEV; }
int __init ns558_init(void) { int i = 0; #ifdef NSS558_ISAPNP struct pci_dev *dev = NULL; struct pnp_devid *devid; #endif /* * Probe for PCI ports. Always probe for PCI first, * it is the least-invasive probe. */ ns558_pci = !pci_module_init(&ns558_pci_driver); /* * Probe for ISA ports. */ while (ns558_isa_portlist[i]) ns558 = ns558_isa_probe(ns558_isa_portlist[i++], ns558); /* * Probe for PnP ports. */ #ifdef NSS558_ISAPNP for (devid = pnp_devids; devid->vendor; devid++) { while ((dev = isapnp_find_dev(NULL, devid->vendor, devid->device, dev))) { ns558 = ns558_pnp_probe(dev, ns558); } } #endif return (ns558 || ns558_pci) ? 0 : -ENODEV; }