gpio: pxa: use devres for the clock struct
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 15 Aug 2022 09:19:29 +0000 (11:19 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Fri, 19 Aug 2022 12:35:11 +0000 (14:35 +0200)
commit3f4e432fb9c6357b4b9bce1def67d61a215029eb
tree02581d44634b115154106b0fe48e7cc85aabaabd
parent636c3982d296a560aabcc5e462c3a6408389ffd2
gpio: pxa: use devres for the clock struct

The clock is never released after probe(). Use devres to not leak
resources.

Reported-by: Hulk Robot <hulkci@huawei.com>
Reported-by: Yuan Can <yuancan@huawei.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pxa.c