Skip to content

Commit fc3f3f5

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/pwm/pwm-img.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ static int img_pwm_remove(struct platform_device *pdev)
331331
if (!pm_runtime_status_suspended(&pdev->dev))
332332
img_pwm_runtime_suspend(&pdev->dev);
333333

334-
return pwmchip_remove(&pwm_chip->chip);
334+
pwmchip_remove(&pwm_chip->chip);
335+
336+
return 0;
335337
}
336338

337339
#ifdef CONFIG_PM_SLEEP

0 commit comments

Comments
 (0)