
13 Jun
2017
13 Jun
'17
5:14 a.m.
On Tue, Jun 6, 2017 at 3:15 AM, Simon Glass sjg@chromium.org wrote:
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
drivers/ata/ahci.c | 75 +++++++++++++++++++++++++++++++------------------- drivers/ata/dwc_ahci.c | 2 +- include/ahci.h | 8 ++++++ 3 files changed, 55 insertions(+), 30 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com