mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
clk: davinci: cfgchip: use PTR_ERR_OR_ZERO in da8xx_cfgchip_register_div4p5
use PTR_ERR_OR_ZERO inetead of return code Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
9e98c678c2
commit
33c70c1399
1 changed files with 1 additions and 3 deletions
|
@ -160,10 +160,8 @@ static int __init da8xx_cfgchip_register_div4p5(struct device *dev,
|
||||||
struct da8xx_cfgchip_gate_clk *gate;
|
struct da8xx_cfgchip_gate_clk *gate;
|
||||||
|
|
||||||
gate = da8xx_cfgchip_gate_clk_register(dev, &da8xx_div4p5ena_info, regmap);
|
gate = da8xx_cfgchip_gate_clk_register(dev, &da8xx_div4p5ena_info, regmap);
|
||||||
if (IS_ERR(gate))
|
|
||||||
return PTR_ERR(gate);
|
|
||||||
|
|
||||||
return 0;
|
return PTR_ERR_OR_ZERO(gate);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init
|
static int __init
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue