summaryrefslogtreecommitdiffstats
path: root/sys/arm/versatile/sp804.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/versatile/sp804.c')
-rw-r--r--sys/arm/versatile/sp804.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arm/versatile/sp804.c b/sys/arm/versatile/sp804.c
index 16db30d..5f986b1 100644
--- a/sys/arm/versatile/sp804.c
+++ b/sys/arm/versatile/sp804.c
@@ -184,6 +184,9 @@ static int
sp804_timer_probe(device_t dev)
{
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
if (ofw_bus_is_compatible(dev, "arm,sp804")) {
device_set_desc(dev, "SP804 System Timer");
return (BUS_PROBE_DEFAULT);
OpenPOWER on IntegriCloud