Skip to content
Snippets Groups Projects
Commit 532f2435 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

syscon: Avoid returning a device on failure


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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent d74d6b44
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment