diff options
author | Simon Glass | 2015-11-29 13:18:06 -0700 |
---|---|---|
committer | Simon Glass | 2016-01-12 10:19:09 -0700 |
commit | ff758ccc8a237f7a4b14be7271b55b1d611b1250 (patch) | |
tree | 174d4836653d64db44f37b64e377b97910ded213 /include/ahci.h | |
parent | 7e78b9ef2c9f263214adf7e2f7be9912a1af564b (diff) |
dm: ahci: Convert to use new DM PCI API
Convert this driver to use the new driver model PCI API.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/ahci.h')
-rw-r--r-- | include/ahci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ahci.h b/include/ahci.h index 0bdedac187a..a956c6ff5df 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; |