Skip to content

Commit

Permalink
pwm: img: Don't check the return code of pwmchip_remove()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Thierry Reding committed Sep 2, 2021
1 parent a08be12 commit fc3f3f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/pwm/pwm-img.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ static int img_pwm_remove(struct platform_device *pdev)
if (!pm_runtime_status_suspended(&pdev->dev))
img_pwm_runtime_suspend(&pdev->dev);

return pwmchip_remove(&pwm_chip->chip);
pwmchip_remove(&pwm_chip->chip);

return 0;
}

#ifdef CONFIG_PM_SLEEP
Expand Down

0 comments on commit fc3f3f5

Please sign in to comment.