提交 457fd768 编写于 作者: A Axel Lin 提交者: Thierry Reding

pwm: pwm-mxs: Return proper error if pwmchip_remove() fails

Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NShawn Guo <shawn.guo@linaro.org>
Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
上级 b50675dc
...@@ -178,9 +178,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev) ...@@ -178,9 +178,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev)
{ {
struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev); struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev);
pwmchip_remove(&mxs->chip); return pwmchip_remove(&mxs->chip);
return 0;
} }
static struct of_device_id mxs_pwm_dt_ids[] = { static struct of_device_id mxs_pwm_dt_ids[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册