diff options
author | Simon Glass <sjg@chromium.org> | 2020-09-27 18:46:17 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-22 09:53:31 -0400 |
commit | 28dc20f34a5a946427d3d02aaf76b4d90f3c5468 (patch) | |
tree | 2cff065040cc0162528c8c57700fb49fb797747d /drivers | |
parent | 8021296a71aa38b65c8568207d30127d635aba6b (diff) | |
download | u-boot-28dc20f34a5a946427d3d02aaf76b4d90f3c5468.zip u-boot-28dc20f34a5a946427d3d02aaf76b4d90f3c5468.tar.gz u-boot-28dc20f34a5a946427d3d02aaf76b4d90f3c5468.tar.bz2 |
syscon: Drop the logging in syscon_get_by_driver_data()
This function can be called when it is not known whether it will find
anything. This results in confusing log messages if the device is not
found. It is better for the caller to log the failure, if necessary.
Drop the logging from this function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/syscon-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon-uclass.c index 509b098..567d0a4 100644 --- a/drivers/core/syscon-uclass.c +++ b/drivers/core/syscon-uclass.c @@ -142,7 +142,7 @@ int syscon_get_by_driver_data(ulong driver_data, struct udevice **devp) ret = uclass_first_device_drvdata(UCLASS_SYSCON, driver_data, devp); if (ret) - return log_msg_ret("find", ret); + return ret; return 0; } |