mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 08:31:17 +00:00
Allow uart_bus_probe() to return the predefined BUS_PROBE_*
constants. In this case: just return what uart_bus_probe() returns.
This commit is contained in:
parent
6811d2bc72
commit
17ef9ca46d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151790
|
@ -66,7 +66,6 @@ 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;
|
||||
|
@ -98,8 +97,7 @@ uart_ebus_probe(device_t dev)
|
|||
}
|
||||
if (!strcmp(nm, "se") || (cmpt != NULL && !strcmp(cmpt, "sab82532"))) {
|
||||
sc->sc_class = &uart_sab82532_class;
|
||||
error = uart_bus_probe(dev, 0, 0, 0, 1);
|
||||
return ((error) ? error : -1);
|
||||
return (uart_bus_probe(dev, 0, 0, 0, 1));
|
||||
}
|
||||
|
||||
return (ENXIO);
|
||||
|
|
Loading…
Reference in a new issue