Commit 7472de71 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by sanglipeng
Browse files

pwm: mtk-disp: Don't check the return code of pwmchip_remove()

stable inclusion
from stable-v5.10.180
commit 060bd30bf70515bd862c6a384de077f0afdcc869
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=060bd30bf70515bd862c6a384de077f0afdcc869



--------------------------------

[ Upstream commit 9b7b5736 ]

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
Stable-dep-of: 36dd7f53 ("pwm: mtk-disp: Disable shadow registers before setting backlight values")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 01791ea4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment