diff options
author | Ding Xiang <dingxiang@cmss.chinamobile.com> | 2019-03-15 15:29:24 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-04-11 11:45:02 -0700 |
commit | 33c70c13992fef95d95df9a0b71d114e02cdae97 (patch) | |
tree | d318f4319a3102342844602949e0f41482b20c8b /drivers/clk/davinci | |
parent | 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff) |
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>
Diffstat (limited to 'drivers/clk/davinci')
-rw-r--r-- | drivers/clk/davinci/da8xx-cfgchip.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c index d1bbee19ed0f..bdc52364b421 100644 --- a/drivers/clk/davinci/da8xx-cfgchip.c +++ b/drivers/clk/davinci/da8xx-cfgchip.c @@ -160,10 +160,8 @@ static int __init da8xx_cfgchip_register_div4p5(struct device *dev, struct da8xx_cfgchip_gate_clk *gate; 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 |