Skip to content

Commit

Permalink
pwm: mtk-disp: 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 mtk_disp_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 bfecbc9 commit 9b7b573
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/pwm/pwm-mtk-disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,12 @@ static int mtk_disp_pwm_probe(struct platform_device *pdev)
static int mtk_disp_pwm_remove(struct platform_device *pdev)
{
struct mtk_disp_pwm *mdp = platform_get_drvdata(pdev);
int ret;

ret = pwmchip_remove(&mdp->chip);
pwmchip_remove(&mdp->chip);
clk_unprepare(mdp->clk_mm);
clk_unprepare(mdp->clk_main);

return ret;
return 0;
}

static const struct mtk_pwm_data mt2701_pwm_data = {
Expand Down

0 comments on commit 9b7b573

Please sign in to comment.