pwm: atmel-tcb: Fix resource freeing in error path and remove
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 19 Jul 2023 19:20:10 +0000 (21:20 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 28 Jul 2023 07:34:43 +0000 (09:34 +0200)
commitc11622324c023415fb69196c5fc3782d2b8cced0
treeb0861c86c0a65972100f2a595cf4347e16cd7aa0
parent0323e8fedd1ef25342cf7abf3a2024f5670362b8
pwm: atmel-tcb: Fix resource freeing in error path and remove

Several resources were not freed in the error path and the remove
function. Add the forgotten items.

Fixes: 34cbcd72588f ("pwm: atmel-tcb: Add sama5d2 support")
Fixes: 061f8572a31c ("pwm: atmel-tcb: Switch to new binding")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel-tcb.c