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 <s...@chromium.org>
---

(no changes since v3)

Changes in v3:
- Update the commit message to explain OF_PLATDATA_NO_BIND better
- Update OF_PLATDATA_NO_BIND help as well

 drivers/core/device.c | 42 +++++++++++++++++++++++++-----------------
 dts/Kconfig           | 18 ++++++++++++++++++
 2 files changed, 43 insertions(+), 17 deletions(-)

Applied to u-boot-dm/next, thanks!

Reply via email to