[U-Boot] [PATCH 1/2] dm: core: allow drivers to refuse to bind

Simon Glass sjg at chromium.org
Wed Apr 20 16:42:04 CEST 2016


On 19 April 2016 at 16:19, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> In some cases, drivers may not want to bind to a device. Allow bind() to
> return -ENODEV in this case, and don't treat this as an error. This can
> be useful in situations where some information source other than the DT
> node's main status property indicates whether the device should be
> enabled, for example other DT properties might indicate this, or the
> driver might query non-DT sources such as system fuses or a version number
> register.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
>  drivers/core/lists.c | 4 ++++
>  1 file changed, 4 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list