mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user