Skip to content

Commit

Permalink
pwm: rcar: 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 rcar_pwm_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 f0e96e2 commit 15d2176
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/pwm/pwm-rcar.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,12 @@ static int rcar_pwm_probe(struct platform_device *pdev)
static int rcar_pwm_remove(struct platform_device *pdev)
{
struct rcar_pwm_chip *rcar_pwm = platform_get_drvdata(pdev);
int ret;

ret = pwmchip_remove(&rcar_pwm->chip);
pwmchip_remove(&rcar_pwm->chip);

pm_runtime_disable(&pdev->dev);

return ret;
return 0;
}

static const struct of_device_id rcar_pwm_of_table[] = {
Expand Down

0 comments on commit 15d2176

Please sign in to comment.