diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-19 10:40:02 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:41 -0700 |
commit | 332b98660f964895f05277dbbc2e0fd05d04ca9b (patch) | |
tree | 66de24da6063e894b6636d37a2e14e8eee7c8311 | |
parent | a1a8a633859ce6ecfe298e3b40eb97c49248f8a0 (diff) | |
download | u-boot-332b98660f964895f05277dbbc2e0fd05d04ca9b.zip u-boot-332b98660f964895f05277dbbc2e0fd05d04ca9b.tar.gz u-boot-332b98660f964895f05277dbbc2e0fd05d04ca9b.tar.bz2 |
x86: apl: Use struct spi_nor instead of struct spi_flash
This construct effectively uses struct spi_nor due to a #define in
spi-nor.h so we may as well use that struct here. This allows dtoc to
parse it correctly.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | arch/x86/cpu/apollolake/spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/apollolake/spl.c b/arch/x86/cpu/apollolake/spl.c index 16a2f15..8991d5e 100644 --- a/arch/x86/cpu/apollolake/spl.c +++ b/arch/x86/cpu/apollolake/spl.c @@ -97,7 +97,7 @@ U_BOOT_DRIVER(winbond_w25q128fw) = { .id = UCLASS_SPI_FLASH, .of_match = apl_flash_ids, .probe = apl_flash_probe, - .priv_auto = sizeof(struct spi_flash), + .priv_auto = sizeof(struct spi_nor), .ops = &apl_flash_ops, }; |