Commit 76982e47 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thierry Reding

pwm: sprd: 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. This is a
good thing as pwmchip_remove() is usually called from a remove function
(mostly for platform devices) and their return value is ignored by the
device core anyhow.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent fde25294
...@@ -284,7 +284,9 @@ static int sprd_pwm_remove(struct platform_device *pdev) ...@@ -284,7 +284,9 @@ static int sprd_pwm_remove(struct platform_device *pdev)
{ {
struct sprd_pwm_chip *spc = platform_get_drvdata(pdev); struct sprd_pwm_chip *spc = platform_get_drvdata(pdev);
return pwmchip_remove(&spc->chip); pwmchip_remove(&spc->chip);
return 0;
} }
static const struct of_device_id sprd_pwm_of_match[] = { static const struct of_device_id sprd_pwm_of_match[] = {
......
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