diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2005-10-28 06:30:39 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2005-10-28 06:30:39 +0000 |
commit | b923a71020ae338f723d9aa01b5365c90aae2fec (patch) | |
tree | dd8e02e149981964605b493861106d289dd5e9b8 /sys/dev/uart/uart_core.c | |
parent | 3a45066f19cf6d30fecd6cfb797edee1d0e5f58d (diff) | |
download | src-b923a71020ae338f723d9aa01b5365c90aae2fec.tar.gz src-b923a71020ae338f723d9aa01b5365c90aae2fec.zip |
In uart_bus_probe() return BUS_PROBE_DEFAULT when the probe is
successful.
Notes
Notes:
svn path=/head/; revision=151792
Diffstat (limited to 'sys/dev/uart/uart_core.c')
-rw-r--r-- | sys/dev/uart/uart_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index 7b068187e565..b2ff203d0b2a 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 |