Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Uwe Kleine-König and committed by
Thierry Reding
9b7b5736 bfecbc94

+2 -3
+2 -3
drivers/pwm/pwm-mtk-disp.c
··· 237 237 static int mtk_disp_pwm_remove(struct platform_device *pdev) 238 238 { 239 239 struct mtk_disp_pwm *mdp = platform_get_drvdata(pdev); 240 - int ret; 241 240 242 - ret = pwmchip_remove(&mdp->chip); 241 + pwmchip_remove(&mdp->chip); 243 242 clk_unprepare(mdp->clk_mm); 244 243 clk_unprepare(mdp->clk_main); 245 244 246 - return ret; 245 + return 0; 247 246 } 248 247 249 248 static const struct mtk_pwm_data mt2701_pwm_data = {