commit | 17e754492ffd3e308763f2543c9b8e4f85fac2f1 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Dec 06 21:42:38 2019 -0700 |
committer | Bin Meng <bmeng.cn@gmail.com> | Sun Dec 15 11:44:21 2019 +0800 |
tree | 057ea73d5869bc76928d810e44f1f9c6d89f8cd3 | |
parent | 674990c0dc21ecedaddb1f923455027bd489914c [diff] |
spi: ich: Move the protection/lockdown code into a function Reduce the size of the probe function but putting this code into its own function. Also remove the assumption that the PCH is always a parent of the SPI controller, as this is not the case APL platforms. Use driver model to find the PCH instead. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>