mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
clk: rockchip: clk-ddr: fix return value in rockchip_ddrclk_sip_set_rate
Returns success (0) or negative errno in rockchip_ddrclk_sip_set_rate call. Change-Id: I9c424d8625a465c235ac5f6b0795f51848e65283 Signed-off-by: YouMin Chen <cym@rock-chips.com>
This commit is contained in:
@@ -68,7 +68,10 @@ static int rockchip_ddrclk_sip_set_rate(struct clk_hw *hw, unsigned long drate,
|
||||
ROCKCHIP_SIP_CONFIG_DRAM_SET_RATE,
|
||||
0, 0, 0, 0, &res);
|
||||
|
||||
return res.a0;
|
||||
if (res.a0)
|
||||
return 0;
|
||||
else
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
|
||||
Reference in New Issue
Block a user