[U-Boot] [PATCH 12/18] led: Return -ENODEV if the LED device cannot be found

Simon Glass sjg at chromium.org
Sat Jul 18 01:58:53 CEST 2015


On 6 July 2015 at 12:54, Simon Glass <sjg at chromium.org> wrote:
> We normally use -ENODEV for a missing device, rather than -ENOENT. The
> latter is reserved for when we have a device but cannot find something
> within it.
>
> Also avoid looking at the root LED device since it is only a container.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/led/led-uclass.c | 5 +++--
>  include/led.h            | 2 +-
>  2 files changed, 4 insertions(+), 3 deletions(-)

Applied to u-boot-dm.


More information about the U-Boot mailing list