summaryrefslogtreecommitdiff
path: root/drivers/ata/dwc_ahci.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-15 06:28:38 +0300
committerSimon Glass <sjg@chromium.org>2017-07-11 19:08:19 +0300
commit4279efc4c949116535bb99f4aa74260d93f82b92 (patch)
tree6e2216bdef8a49a4d332d68c1f15187d7cf246d8 /drivers/ata/dwc_ahci.c
parent7cf1afce7fa3fe64189020fe14b93f7326dd0758 (diff)
downloadu-boot-4279efc4c949116535bb99f4aa74260d93f82b92.tar.xz
dm: ahci: Drop use of probe_ent
With driver model we cannot have static data or assume that there is only one device of each time. Adjust the code so that 'probe_ent' is not needed with driver model. Add a new ahci_init_dm() function which can init AHCI for driver model without re-allocating the uclass data. Move over the only existing driver to use this new function. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/ata/dwc_ahci.c')
-rw-r--r--drivers/ata/dwc_ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_ahci.c
index eadd77944c..401201717f 100644
--- a/drivers/ata/dwc_ahci.c
+++ b/drivers/ata/dwc_ahci.c
@@ -81,7 +81,7 @@ static int dwc_ahci_probe(struct udevice *dev)
writel(val, priv->wrapper_base + TI_SATA_SYSCONFIG);
}
- ret = ahci_init(priv->base);
+ ret = ahci_init_dm(dev, priv->base);
if (ret)
return ret;