commit | 78d520c7630dacbef6e4c2d169845f12f590a2bc | [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 | 23485ebde4ce8bc26dd097f8cd9563293f39eb2c [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>