diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2004-08-25 22:15:33 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2004-08-25 22:15:33 +0000 |
| commit | 8f0882f54460353c74ba352f3a6a634de208394b (patch) | |
| tree | 2bd8b54e95d857801553b4d2d037ad6183c44e6e /sys/dev/uart/uart_bus_isa.c | |
| parent | e5d264a34bd78e42bde7a52d610ce18cc12a8071 (diff) | |
Notes
Diffstat (limited to 'sys/dev/uart/uart_bus_isa.c')
| -rw-r--r-- | sys/dev/uart/uart_bus_isa.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/uart/uart_bus_isa.c b/sys/dev/uart/uart_bus_isa.c index 72e054987954..82dd59a45496 100644 --- a/sys/dev/uart/uart_bus_isa.c +++ b/sys/dev/uart/uart_bus_isa.c @@ -155,15 +155,14 @@ uart_isa_probe(device_t dev) parent = device_get_parent(dev); sc = device_get_softc(dev); - if (!ISA_PNP_PROBE(parent, dev, isa_ns8250_ids)) { + /* Probe PnP _and_ non-PnP ns8250 here. */ + if (ISA_PNP_PROBE(parent, dev, isa_ns8250_ids) != ENXIO) { sc->sc_class = &uart_ns8250_class; return (uart_bus_probe(dev, 0, 0, 0, 0)); } /* Add checks for non-ns8250 IDs here. */ - - sc->sc_class = &uart_ns8250_class; - return (uart_bus_probe(dev, 0, 0, 0, 0)); + return (ENXIO); } DRIVER_MODULE(uart, isa, uart_isa_driver, uart_devclass, 0, 0); |
