]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: hibvt: Disable the clock only after the PWM was unregistered
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 7 Jul 2021 16:27:54 +0000 (18:27 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 2 Sep 2021 19:38:37 +0000 (21:38 +0200)
commit99c531009bbd6579c23a9cb9829c51088d1973c4
tree21546243eead922ba128bad3372c750de5c298f5
parentb5accf43355cba7ee612aaba713684e57c9f285f
pwm: hibvt: Disable the clock only after the PWM was unregistered

The driver is supposed to stay functional until pwmchip_remove()
returns. So disable clocks and reset the hardware only after that.

The return value of pwmchip_remove doesn't need to be checked because
it returns zero anyhow and should be changed to return void eventually.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-hibvt.c