diff options
author | Simon Glass | 2020-10-03 11:31:39 -0600 |
---|---|---|
committer | Simon Glass | 2020-10-29 14:42:18 -0600 |
commit | bb44ebdd0f3eccece2081ec51cf3b3554dafd801 (patch) | |
tree | 8df7643fc7155e6fd1ff71cc0be512c333a333da /arch/x86 | |
parent | d07f31aea07ec642e8072fe0b83ba56ec83cc561 (diff) |
x86: apl: Take advantage of the of-platdata parent support
Now that parent devices are supported with of-platadata, we don't need the
messy code to fix up the parent pointers and allocations on Apollo Lake.
Put the code behind a condition.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/apollolake/spl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/cpu/apollolake/spl.c b/arch/x86/cpu/apollolake/spl.c index 5a53831dc6a..089b37c59f8 100644 --- a/arch/x86/cpu/apollolake/spl.c +++ b/arch/x86/cpu/apollolake/spl.c @@ -90,7 +90,8 @@ static int apl_flash_probe(struct udevice *dev) */ static int apl_flash_bind(struct udevice *dev) { - if (CONFIG_IS_ENABLED(OF_PLATDATA)) { + if (CONFIG_IS_ENABLED(OF_PLATDATA) && + !CONFIG_IS_ENABLED(OF_PLATDATA_PARENT)) { struct dm_spi_slave_platdata *plat; struct udevice *spi; int ret; |