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

pwm: imx-tpm: 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
bfecbc94 fc3f3f56

+3 -2
+3 -2
drivers/pwm/pwm-imx-tpm.c
··· 382 382 static int pwm_imx_tpm_remove(struct platform_device *pdev) 383 383 { 384 384 struct imx_tpm_pwm_chip *tpm = platform_get_drvdata(pdev); 385 - int ret = pwmchip_remove(&tpm->chip); 385 + 386 + pwmchip_remove(&tpm->chip); 386 387 387 388 clk_disable_unprepare(tpm->clk); 388 389 389 - return ret; 390 + return 0; 390 391 } 391 392 392 393 static int __maybe_unused pwm_imx_tpm_suspend(struct device *dev)