mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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:
parent
2d5118050a
commit
0bb90c9d57
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155972
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user