Skip to content

Commit

Permalink
pwm: renesas-tpu: 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 tpu_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 15d2176 commit 81d4b5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/pwm/pwm-renesas-tpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,12 @@ static int tpu_probe(struct platform_device *pdev)
static int tpu_remove(struct platform_device *pdev)
{
struct tpu_device *tpu = platform_get_drvdata(pdev);
int ret;

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

pm_runtime_disable(&pdev->dev);

return ret;
return 0;
}

#ifdef CONFIG_OF
Expand Down

0 comments on commit 81d4b5c

Please sign in to comment.