dm: ahci: Refactor to avoid static variables
authorSimon Glass <sjg@chromium.org>
Thu, 15 Jun 2017 03:28:34 +0000 (21:28 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:19 +0000 (10:08 -0600)
commit225b1da7bfaf3c6a6812adb3ed1a85ada76c85f4
tree35a32b98fdace53db7f1e90b3f06b340289b86a3
parent4b62b2ff53e48ba31d341507c09951f8de353f99
dm: ahci: Refactor to avoid static variables

With driver model we need each device to have its own state. As a step
towards this, restrict use of the global 'probe_ent' to just a few places
in the file. This will allow us to add driver-model functions which can
pass the correct data around.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/ata/ahci.c