pwm: bcm-iproc: Free resources only after pwmchip_remove()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 24 Mar 2021 20:01:34 +0000 (21:01 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 9 Apr 2021 12:33:10 +0000 (14:33 +0200)
commitd4ac3917bca64a4f630dc6f7ba47fe71dbf0273e
treefbe469df897913f42ddc92a56f1b9b2c12e8807f
parent89c6f314602efeecfe8d9093571b3bbfe1029ab5
pwm: bcm-iproc: Free resources only after pwmchip_remove()

Before pwmchip_remove() returns the PWM is expected to be functional. So
remove the pwmchip before disabling the clock.

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-iproc.c