pinctrl: aw9523: Destroy mutex on ->remove()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Fri, 29 Mar 2024 10:55:15 +0000 (12:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Apr 2024 11:16:45 +0000 (13:16 +0200)
commite5e8a58023707472e5dbe9bc7b473a8703b401e0
tree44ab521411d408f6a652361b9768e74aab09738e
parentd303735ce5dcd79783e65a3710f7f16d14f8900a
pinctrl: aw9523: Destroy mutex on ->remove()

If aw9523_hw_init() fails on ->remove() the mutex left alive.
Destroy it in that case as well. While at it, remove never
true check at the beginning of the function.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Message-ID: <20240329105634.712457-2-andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-aw9523.c