From: Axel Lin Date: Sun, 1 Jul 2012 04:57:00 +0000 (+0800) Subject: pwm: pwm-bfin: Return proper error if pwmchip_remove() fails X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b50675dcc3402ea456a1d59855260fcfd800fb40;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git pwm: pwm-bfin: Return proper error if pwmchip_remove() fails Signed-off-by: Axel Lin Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-bfin.c b/drivers/pwm/pwm-bfin.c index a0c6bf9070ea..d53c4e7941ef 100644 --- a/drivers/pwm/pwm-bfin.c +++ b/drivers/pwm/pwm-bfin.c @@ -146,9 +146,7 @@ static int __devexit bfin_pwm_remove(struct platform_device *pdev) { struct bfin_pwm_chip *pwm = platform_get_drvdata(pdev); - pwmchip_remove(&pwm->chip); - - return 0; + return pwmchip_remove(&pwm->chip); } static struct platform_driver bfin_pwm_driver = {