summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/chipsets/ata-fsl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ata/chipsets/ata-fsl.c b/sys/dev/ata/chipsets/ata-fsl.c
index 17c91da..794802e 100644
--- a/sys/dev/ata/chipsets/ata-fsl.c
+++ b/sys/dev/ata/chipsets/ata-fsl.c
@@ -69,6 +69,9 @@ imx_ata_probe(device_t dev)
{
struct ata_pci_controller *ctrl;
+ if (!ofw_bus_status_okay(dev))
+ return (ENXIO);
+
if (!ofw_bus_is_compatible(dev, "fsl,imx51-ata"))
return (ENXIO);
OpenPOWER on IntegriCloud