commit | 225b1da7bfaf3c6a6812adb3ed1a85ada76c85f4 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Jun 14 21:28:34 2017 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue Jul 11 10:08:19 2017 -0600 |
tree | 35a32b98fdace53db7f1e90b3f06b340289b86a3 | |
parent | 4b62b2ff53e48ba31d341507c09951f8de353f99 [diff] |
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>