pwm: bcm-kona: Don't modify HW state in .remove callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 26 Mar 2021 08:18:04 +0000 (09:18 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 9 Apr 2021 12:44:12 +0000 (14:44 +0200)
commit819e82460ac858cdca38f748829979602a7708ee
treed4d62915d8549d74a018ba2e9082b2cedff23c66
parent3c817469a53d93bbae52f8ead207dc0b9aeebae9
pwm: bcm-kona: Don't modify HW state in .remove callback

A consumer is expected to disable a PWM before calling pwm_put(). And if
they didn't there is hopefully a good reason (or the consumer needs
fixing.) Also if disabling an enabled PWM was the right thing to do, this
should better be done in the framework instead of in each low level driver.

So drop the hardware modification from the .remove() callback.

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