Commit aacbd654 authored by Florian Fainelli's avatar Florian Fainelli Committed by Thierry Reding

pwm: brcmstb: Checked clk_prepare_enable() return value

Check the clk_prepare_enable() return value and propagate it.
Suggested-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent e9bc4411
...@@ -273,9 +273,7 @@ static int brcmstb_pwm_resume(struct device *dev) ...@@ -273,9 +273,7 @@ static int brcmstb_pwm_resume(struct device *dev)
{ {
struct brcmstb_pwm *p = dev_get_drvdata(dev); struct brcmstb_pwm *p = dev_get_drvdata(dev);
clk_prepare_enable(p->clk); return clk_prepare_enable(p->clk);
return 0;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment