]> git.baikalelectronics.ru Git - uboot.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)
commit87d0c5ac94066f5f6d3492bc852a69e5bc5b9075
treeed66a23cc7da34d7e8ac35f455d2a7883e63b681
parentdfefb2c9782622968af1a1d2be6777b951d2b33f
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