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

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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>

authored by

Axel Lin and committed by
Thierry Reding
457fd768 b50675dc

+1 -3
+1 -3
drivers/pwm/pwm-mxs.c
··· 178 178 { 179 179 struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev); 180 180 181 - pwmchip_remove(&mxs->chip); 182 - 183 - return 0; 181 + return pwmchip_remove(&mxs->chip); 184 182 } 185 183 186 184 static struct of_device_id mxs_pwm_dt_ids[] = {