summaryrefslogtreecommitdiffstats
path: root/sys/arm/samsung
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/arm/samsung
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/arm/samsung')
-rw-r--r--sys/arm/samsung/exynos/arch_timer.c4
-rw-r--r--sys/arm/samsung/exynos/ehci_exynos5.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/arm/samsung/exynos/arch_timer.c b/sys/arm/samsung/exynos/arch_timer.c
index 86bb6f3..9408df5 100644
--- a/sys/arm/samsung/exynos/arch_timer.c
+++ b/sys/arm/samsung/exynos/arch_timer.c
@@ -71,6 +71,10 @@ static struct resource_spec arm_tmr_spec[] = {
static int
arm_tmr_probe(device_t dev)
{
+
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
if (!ofw_bus_is_compatible(dev, "exynos,mct"))
return (ENXIO);
diff --git a/sys/arm/samsung/exynos/ehci_exynos5.c b/sys/arm/samsung/exynos/ehci_exynos5.c
index 71c43d8..7022d46 100644
--- a/sys/arm/samsung/exynos/ehci_exynos5.c
+++ b/sys/arm/samsung/exynos/ehci_exynos5.c
@@ -147,6 +147,9 @@ static int
exynos_ehci_probe(device_t dev)
{
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
if (ofw_bus_is_compatible(dev, "exynos,usb-ehci") == 0)
return (ENXIO);
OpenPOWER on IntegriCloud