projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44510da
)
clk: Fix error check in clk_set_default_parents()
author
Jean-Jacques Hiblot
<jjhiblot@ti.com>
Thu, 26 Sep 2019 13:42:42 +0000
(15:42 +0200)
committer
Lukasz Majewski
<lukma@denx.de>
Tue, 22 Oct 2019 14:14:05 +0000
(16:14 +0200)
According to the documentation in clk.h, clk_set_parent() return the new
rate of the clock or a negative error code.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
drivers/clk/clk-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-uclass.c
b/drivers/clk/clk-uclass.c
index
64c181f
..
bf1adc0
100644
(file)
--- a/
drivers/clk/clk-uclass.c
+++ b/
drivers/clk/clk-uclass.c
@@
-223,7
+223,7
@@
static int clk_set_default_parents(struct udevice *dev)
if (ret == -ENOSYS)
continue;
- if (ret) {
+ if (ret
< 0
) {
debug("%s: failed to reparent clock %d for %s\n",
__func__, index, dev_read_name(dev));
return ret;