]> git.baikalelectronics.ru Git - uboot.git/commit
dm: ahci: Drop use of probe_ent
authorSimon Glass <sjg@chromium.org>
Thu, 15 Jun 2017 03:28:38 +0000 (21:28 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:19 +0000 (10:08 -0600)
commit336fdda187b8a551bcafddd1be4ac0ed30aebc5e
tree6e2216bdef8a49a4d332d68c1f15187d7cf246d8
parentc71d3db27f2da323a03e28e4563a145a0aa583ae
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>
drivers/ata/ahci.c
drivers/ata/dwc_ahci.c
include/ahci.h