summaryrefslogtreecommitdiffstats
path: root/sys/arm/lpc/lpc_rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/lpc/lpc_rtc.c')
-rw-r--r--sys/arm/lpc/lpc_rtc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arm/lpc/lpc_rtc.c b/sys/arm/lpc/lpc_rtc.c
index d2812482..80c378d 100644
--- a/sys/arm/lpc/lpc_rtc.c
+++ b/sys/arm/lpc/lpc_rtc.c
@@ -63,6 +63,9 @@ static int
lpc_rtc_probe(device_t dev)
{
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
if (!ofw_bus_is_compatible(dev, "lpc,rtc"))
return (ENXIO);
OpenPOWER on IntegriCloud