Commit 81d4b5c4 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thierry Reding

pwm: renesas-tpu: 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 tpu_remove().
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 15d21761
...@@ -425,13 +425,12 @@ static int tpu_probe(struct platform_device *pdev) ...@@ -425,13 +425,12 @@ static int tpu_probe(struct platform_device *pdev)
static int tpu_remove(struct platform_device *pdev) static int tpu_remove(struct platform_device *pdev)
{ {
struct tpu_device *tpu = platform_get_drvdata(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); pm_runtime_disable(&pdev->dev);
return ret; return 0;
} }
#ifdef CONFIG_OF #ifdef CONFIG_OF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment