summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-05-15 16:11:06 +0000
committerian <ian@FreeBSD.org>2014-05-15 16:11:06 +0000
commit20a269e6c7378fda94043f8419c9becbde7f427a (patch)
tree675ee07ce869e3193726664b9896e280b0c03239 /sys/dev/uart
parentffa1dc9425d9681f0da92d9266010bcc0f81d399 (diff)
downloadFreeBSD-src-20a269e6c7378fda94043f8419c9becbde7f427a.zip
FreeBSD-src-20a269e6c7378fda94043f8419c9becbde7f427a.tar.gz
MFC r261410
Follow r261352 by updating all drivers which are children of simplebus to check the status property in their probe routines.
Diffstat (limited to 'sys/dev/uart')
-rw-r--r--sys/dev/uart/uart_bus_fdt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_bus_fdt.c b/sys/dev/uart/uart_bus_fdt.c
index 3630b9c..f434f4f 100644
--- a/sys/dev/uart/uart_bus_fdt.c
+++ b/sys/dev/uart/uart_bus_fdt.c
@@ -134,6 +134,9 @@ uart_fdt_probe(device_t dev)
sc = device_get_softc(dev);
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
cd = ofw_bus_search_compatible(dev, compat_data);
if (cd->ocd_data == (uintptr_t)NULL)
return (ENXIO);
OpenPOWER on IntegriCloud