When we probe a SAB82532, return BUS_PROBE_GENERIC. This allows puc(4)

or scc(4) to grab the device by default. In fact, we probably shouldn't
even claim the device at all...
This commit is contained in:
Marcel Moolenaar 2006-02-24 05:36:44 +00:00
parent 2d5118050a
commit 0bb90c9d57
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155972

View file

@ -66,6 +66,7 @@ uart_ebus_probe(device_t dev)
const char *nm, *cmpt;
struct uart_softc *sc;
struct uart_devinfo dummy;
int error;
sc = device_get_softc(dev);
sc->sc_class = NULL;
@ -101,7 +102,8 @@ uart_ebus_probe(device_t dev)
}
if (!strcmp(nm, "se") || !strcmp(cmpt, "sab82532")) {
sc->sc_class = &uart_sab82532_class;
return (uart_bus_probe(dev, 0, 0, 0, 1));
error = uart_bus_probe(dev, 0, 0, 0, 1);
return ((error <= 0) ? BUS_PROBE_GENERIC : error);
}
return (ENXIO);