[PATCH 09/10] cros_ec: Allow use with of-platdata
Simon Glass
sjg at chromium.org
Sat Jan 16 22:52:30 CET 2021
Avoid reading the device tree when of-platdata is in use.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/misc/cros_ec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index 0bc28e882c9..c22bb4b5b50 100644
--- a/drivers/misc/cros_ec.c
+++ b/drivers/misc/cros_ec.c
@@ -1577,6 +1577,8 @@ UCLASS_DRIVER(cros_ec) = {
.id = UCLASS_CROS_EC,
.name = "cros-ec",
.per_device_auto = sizeof(struct cros_ec_dev),
+#if !CONFIG_IS_ENABLED(OF_PLATDATA)
.post_bind = dm_scan_fdt_dev,
+#endif
.flags = DM_UC_FLAG_ALLOC_PRIV_DMA,
};
--
2.30.0.284.gd98b1dd5eaa7-goog
More information about the U-Boot
mailing list