mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
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>
This commit is contained in:
parent
8021296a71
commit
28dc20f34a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user