summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-17 00:52:30 +0300
committerSimon Glass <sjg@chromium.org>2021-01-31 00:25:41 +0300
commitd9ffaef6fe25e7a29e63911fe1af5d18c9d77a45 (patch)
tree97d225bf7491156af9717ff52031b7e86648c804
parent3ae338299e1649ef9a38c45fcde864022c448a9e (diff)
downloadu-boot-d9ffaef6fe25e7a29e63911fe1af5d18c9d77a45.tar.xz
cros_ec: Allow use with of-platdata
Avoid reading the device tree when of-platdata is in use. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/misc/cros_ec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index 0bc28e882c..c22bb4b5b5 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,
};