summaryrefslogtreecommitdiffstats
path: root/include/ahci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ahci.h')
-rw-r--r--include/ahci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ahci.h b/include/ahci.h
index 0bdedac187..a956c6ff5d 100644
--- a/include/ahci.h
+++ b/include/ahci.h
@@ -145,7 +145,11 @@ struct ahci_ioports {
};
struct ahci_probe_ent {
+#ifdef CONFIG_DM_PCI
+ struct udevice *dev;
+#else
pci_dev_t dev;
+#endif
struct ahci_ioports port[AHCI_MAX_PORTS];
u32 n_ports;
u32 hard_port_no;
OpenPOWER on IntegriCloud