]> git.ipfire.org Git - thirdparty/u-boot.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)
commit1ef3af3b2717aba9db79879274ab5e1f1d7b2d25
tree20db7bc4bce5c0286f955185de115d92e215a37f
parent607f9bcb0d0af57c52bacf4d3aeb3a7d389ea206
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