diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-12-02 19:35:36 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-12-06 12:46:29 +0100 |
commit | c73a3107624ddc305483ced13deca9ce8a073783 (patch) | |
tree | 16ea7566a4aa42fd60f752b86e32f840964aaedf /drivers/pwm/pwm-sun4i.c | |
parent | 500f879843adf329281e418d302e1ad40baa26c3 (diff) | |
download | linux-stable-c73a3107624ddc305483ced13deca9ce8a073783.tar.gz linux-stable-c73a3107624ddc305483ced13deca9ce8a073783.tar.bz2 linux-stable-c73a3107624ddc305483ced13deca9ce8a073783.zip |
pwm: Handle .get_state() failures
This suppresses diagnosis for PWM_DEBUG routines and makes sure that
pwm->state isn't modified in pwm_device_request() if .get_state() fails.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221130152148.2769768-12-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-sun4i.c')
0 files changed, 0 insertions, 0 deletions