diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-22 19:30:24 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:40 -0700 |
commit | 79ea8f749d6cf779706f297fa2ffbc8f384c57de (patch) | |
tree | 381ec5dd0ae1829d9d3d3d17bb073bf8b6ace45c /drivers | |
parent | 9c503137b73534c3b5abb90691b4d9675b1cdead (diff) | |
download | u-boot-79ea8f749d6cf779706f297fa2ffbc8f384c57de.zip u-boot-79ea8f749d6cf779706f297fa2ffbc8f384c57de.tar.gz u-boot-79ea8f749d6cf779706f297fa2ffbc8f384c57de.tar.bz2 |
dm: core: Only include simple-bus devicetree id when needed
This is not needed when of-platdata is in use. Update it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/simple-bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index c45212a..7dbcbec 100644 --- a/drivers/core/simple-bus.c +++ b/drivers/core/simple-bus.c @@ -50,15 +50,17 @@ UCLASS_DRIVER(simple_bus) = { .per_device_plat_auto = sizeof(struct simple_bus_plat), }; +#if !CONFIG_IS_ENABLED(OF_PLATDATA) static const struct udevice_id generic_simple_bus_ids[] = { { .compatible = "simple-bus" }, { .compatible = "simple-mfd" }, { } }; +#endif U_BOOT_DRIVER(simple_bus) = { .name = "simple_bus", .id = UCLASS_SIMPLE_BUS, - .of_match = generic_simple_bus_ids, + .of_match = of_match_ptr(generic_simple_bus_ids), .flags = DM_FLAG_PRE_RELOC, }; |