]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Allow dropping run-time binding of devices
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:15 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:28 +0000 (19:23 +1300)
commit5fdc175c92261d5d8ec2dfbe5018c92318d19247
tree20db7bc4bce5c0286f955185de115d92e215a37f
parentbcd296f9e52286debd1176ea568a6afc23ee4581
dm: core: Allow dropping run-time binding of devices

With OF_PLATDATA_INST devices are bound at build time. We should not need
binding of devices at runtime in most cases. However it is inflexible to
absolutely prohibit it, so add an option to control this.

Update the driver model core so that it does not bind devices. Update
device_bind() to return an error if called.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
dts/Kconfig