x86: queensbay: Move unprotect_spi_flash() to arch_misc_init()
authorBin Meng <bmeng.cn@gmail.com>
Thu, 20 Aug 2015 13:40:21 +0000 (06:40 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:46 +0000 (11:29 +0200)
commit41071e7622ffa4e49541b501d92a9c3901302d44
tree507fbc0163ebae15baf51f5e01c3db1c5c7ebcb3
parente0effffc365d1dd3018091f421e0a83d63eb9eda
x86: queensbay: Move unprotect_spi_flash() to arch_misc_init()

With dm pci conversion, pci config read/write in unprotect_spi_flash()
silently fails as at that time dm pci is not ready and bus enumeration
is not done yet. Actually we don't need to do this in that early phase,
hence we delay this call to arch_misc_init().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/queensbay/tnc.c