commit | 36ab8e3c5a191750c5c86339bdf413dd3d427ec9 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Mar 11 22:06:49 2016 -0700 |
committer | Bin Meng <bmeng.cn@gmail.com> | Thu Mar 17 10:27:24 2016 +0800 |
tree | 2ad2439fe2a930b8a9cf3b48967f4428b014ae41 | |
parent | b0fb7bd2f8e029c7944dc3b7e89b23cdf9bafbd1 [diff] |
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: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>