mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
9c503137b7
commit
79ea8f749d
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue