Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>

authored by

Axel Lin and committed by
Thierry Reding
b50675dc abeaf755

+1 -3
+1 -3
drivers/pwm/pwm-bfin.c
··· 146 146 { 147 147 struct bfin_pwm_chip *pwm = platform_get_drvdata(pdev); 148 148 149 - pwmchip_remove(&pwm->chip); 150 - 151 - return 0; 149 + return pwmchip_remove(&pwm->chip); 152 150 } 153 151 154 152 static struct platform_driver bfin_pwm_driver = {