aboutsummaryrefslogtreecommitdiff
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-14 21:28:31 -0600
committerSimon Glass <sjg@chromium.org>2017-07-11 10:08:19 -0600
commit1dc64f6c00e89f11e3615403459207405ab0efda (patch)
treee3095ec40a37e7e48a38cbabfa6391e7458823ae /drivers/ata/ahci.c
parentb9560ad649b8c523bf303cf9ba981e498988c5d9 (diff)
downloadu-boot-1dc64f6c00e89f11e3615403459207405ab0efda.zip
u-boot-1dc64f6c00e89f11e3615403459207405ab0efda.tar.gz
u-boot-1dc64f6c00e89f11e3615403459207405ab0efda.tar.bz2
dm: scsi: Use the uclass platform data
At present the two driver-model SCSI drivers use device platform data to store information that relates to the uclass. It is better to use uclass platform data in this situation. Update the code to do this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r--drivers/ata/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 29835f0..2cc604b 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -479,7 +479,7 @@ static int ahci_init_one(pci_dev_t dev)
pci_write_config_byte(dev, 0x41, 0xa1);
#endif
#else
- struct scsi_platdata *plat = dev_get_platdata(dev);
+ struct scsi_platdata *plat = dev_get_uclass_platdata(dev);
probe_ent->mmio_base = (void *)plat->base;
#endif