[U-Boot] [PATCH 17/18] dm: core: Add device checking to syscon_get_regmap()

Simon Glass sjg at chromium.org
Sat Jul 18 01:59:06 CEST 2015


On 6 July 2015 at 12:54, Simon Glass <sjg at chromium.org> wrote:
> This function can only handle a syscon device. It is possible that someone
> will make a mistake, so add a check for this.
>
> Also we should return -ENODEV when a device cannot be found, so update the
> syscon_get_regmap_by_driver_data() to follow this convention.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/core/syscon-uclass.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Applied to u-boot-dm.


More information about the U-Boot mailing list