]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: sci-clk: fix return value of set_rate
authorTero Kristo <t-kristo@ti.com>
Fri, 11 Jun 2021 08:45:10 +0000 (11:45 +0300)
committerLokesh Vutla <lokeshvutla@ti.com>
Fri, 11 Jun 2021 11:04:52 +0000 (16:34 +0530)
commitc319572abd95826b958c753ebcd3b83884eb60af
treeed66a23cc7da34d7e8ac35f455d2a7883e63b681
parent7ab418fbe61275efb5c89cff48bbdd299eb1a22e
clk: sci-clk: fix return value of set_rate

Set rate should return the new clock rate on success, and negative error
value on failure. Fix this, as currently set_rate returns 0 on success.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tero Kristo <kristo@kernel.org>
drivers/clk/ti/clk-sci.c