mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user