Skip to content

Commit 9b7b573

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: mtk-disp: 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 mtk_disp_pwm_remove(). Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent bfecbc9 commit 9b7b573

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pwm/pwm-mtk-disp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,12 @@ static int mtk_disp_pwm_probe(struct platform_device *pdev)
237237
static int mtk_disp_pwm_remove(struct platform_device *pdev)
238238
{
239239
struct mtk_disp_pwm *mdp = platform_get_drvdata(pdev);
240-
int ret;
241240

242-
ret = pwmchip_remove(&mdp->chip);
241+
pwmchip_remove(&mdp->chip);
243242
clk_unprepare(mdp->clk_mm);
244243
clk_unprepare(mdp->clk_main);
245244

246-
return ret;
245+
return 0;
247246
}
248247

249248
static const struct mtk_pwm_data mt2701_pwm_data = {

0 commit comments

Comments
 (0)