summaryrefslogtreecommitdiff
path: root/sys/dev/sdhci
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2014-05-15 16:11:06 +0000
committerIan Lepore <ian@FreeBSD.org>2014-05-15 16:11:06 +0000
commit359c68281f130a91637dbe0f7fe4f9ba4da79e58 (patch)
tree675ee07ce869e3193726664b9896e280b0c03239 /sys/dev/sdhci
parent82d0aa3eef433525d353d5017a081ca90c16bb21 (diff)
Notes
Diffstat (limited to 'sys/dev/sdhci')
-rw-r--r--sys/dev/sdhci/sdhci_fdt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sdhci/sdhci_fdt.c b/sys/dev/sdhci/sdhci_fdt.c
index e92b15823153..65eac6df8b6a 100644
--- a/sys/dev/sdhci/sdhci_fdt.c
+++ b/sys/dev/sdhci/sdhci_fdt.c
@@ -157,6 +157,9 @@ sdhci_fdt_probe(device_t dev)
sc->quirks = 0;
sc->num_slots = 1;
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
if (ofw_bus_is_compatible(dev, "sdhci_generic")) {
device_set_desc(dev, "generic fdt SDHCI controller");
} else if (ofw_bus_is_compatible(dev, "xlnx,zy7_sdhci")) {