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

pwm: img: Don't check the return code of pwmchip_remove()

pwmchip_remove() returns always 0. Don't use the value to make it
possible to eventually change the function to return void. Also the
driver core ignores the return value of pwm_imx_tpm_remove().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Uwe Kleine-König and committed by
Thierry Reding
fc3f3f56 a08be127

+3 -1
+3 -1
drivers/pwm/pwm-img.c
··· 331 331 if (!pm_runtime_status_suspended(&pdev->dev)) 332 332 img_pwm_runtime_suspend(&pdev->dev); 333 333 334 - return pwmchip_remove(&pwm_chip->chip); 334 + pwmchip_remove(&pwm_chip->chip); 335 + 336 + return 0; 335 337 } 336 338 337 339 #ifdef CONFIG_PM_SLEEP