Commit 457fd768 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding

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

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent b50675dc
......@@ -178,9 +178,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev)
{
struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev);
pwmchip_remove(&mxs->chip);
return 0;
return pwmchip_remove(&mxs->chip);
}
static struct of_device_id mxs_pwm_dt_ids[] = {
......
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