Skip to content

Commit bfecbc9

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent fc3f3f5 commit bfecbc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/pwm/pwm-imx-tpm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,12 @@ static int pwm_imx_tpm_probe(struct platform_device *pdev)
382382
static int pwm_imx_tpm_remove(struct platform_device *pdev)
383383
{
384384
struct imx_tpm_pwm_chip *tpm = platform_get_drvdata(pdev);
385-
int ret = pwmchip_remove(&tpm->chip);
385+
386+
pwmchip_remove(&tpm->chip);
386387

387388
clk_disable_unprepare(tpm->clk);
388389

389-
return ret;
390+
return 0;
390391
}
391392

392393
static int __maybe_unused pwm_imx_tpm_suspend(struct device *dev)

0 commit comments

Comments
 (0)