From 175c41b86af872bde2bead127e56ad848b0e3eb7 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 28 Oct 2005 06:30:39 +0000 Subject: In uart_bus_probe() return BUS_PROBE_DEFAULT when the probe is successful. --- sys/dev/uart/uart_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/uart') diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index 7b06818..b2ff203 100644 --- a/sys/dev/uart/uart_core.c +++ b/sys/dev/uart/uart_core.c @@ -282,7 +282,7 @@ uart_bus_probe(device_t dev, int regshft, int rclk, int rid, int chan) error = UART_PROBE(sc); bus_release_resource(dev, sc->sc_rtype, sc->sc_rrid, sc->sc_rres); - return (error); + return ((error) ? error : BUS_PROBE_DEFAULT); } int -- cgit v1.1