[U-Boot] [PATCH v2 04/51] syscon: Avoid returning a device on failure

Bin Meng bmeng.cn at gmail.com
Mon Mar 14 05:10:39 CET 2016


On Sat, Mar 12, 2016 at 1:06 PM, Simon Glass <sjg at chromium.org> wrote:
> If the device cannot be probed, syscon_get_by_driver_data() will still
> return a useful value in its devp parameter. Ensure that it returns NULL
> instead.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2: None
>
>  drivers/core/syscon-uclass.c | 1 +
>  1 file changed, 1 insertion(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list