aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sec
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2014-02-02 19:17:28 +0000
committerIan Lepore <ian@FreeBSD.org>2014-02-02 19:17:28 +0000
commitadd35ed5b81bd56b4e0f1f9db0636b785cc0c8d1 (patch)
treef7a07f25a40a264286f85b60ecb1346dd35ef91b /sys/dev/sec
parent6f34487cc9dca0d09c4bd0f11004895bb8add4bd (diff)
Notes
Diffstat (limited to 'sys/dev/sec')
-rw-r--r--sys/dev/sec/sec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sec/sec.c b/sys/dev/sec/sec.c
index 1f684d05b40b8..3b99a3e326a08 100644
--- a/sys/dev/sec/sec.c
+++ b/sys/dev/sec/sec.c
@@ -199,6 +199,9 @@ sec_probe(device_t dev)
struct sec_softc *sc;
uint64_t id;
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
if (!ofw_bus_is_compatible(dev, "fsl,sec2.0"))
return (ENXIO);