From: Axel Lin Date: Sun, 1 Jul 2012 04:58:00 +0000 (+0800) Subject: pwm: pwm-mxs: Return proper error if pwmchip_remove() fails X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=457fd768ee1f7c78e85dfbe86329e6b24eb36514;p=linux-beck.git pwm: pwm-mxs: Return proper error if pwmchip_remove() fails Signed-off-by: Axel Lin Acked-by: Shawn Guo Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c index 269d7c2a87d6..e5852646f082 100644 --- a/drivers/pwm/pwm-mxs.c +++ b/drivers/pwm/pwm-mxs.c @@ -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[] = {