projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8021296
)
syscon: Drop the logging in syscon_get_by_driver_data()
author
Simon Glass
<sjg@chromium.org>
Mon, 28 Sep 2020 00:46:17 +0000
(18:46 -0600)
committer
Tom Rini
<trini@konsulko.com>
Thu, 22 Oct 2020 13:53:31 +0000
(09:53 -0400)
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>
drivers/core/syscon-uclass.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/core/syscon-uclass.c
b/drivers/core/syscon-uclass.c
index 509b09845ad2730932a35f09a09246378801bf2b..567d0a4b50aee679660903c7f15c8f8666b4ee81 100644
(file)
--- 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;
}
This page took
0.03727 seconds
and
4
git commands to generate.