]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c7f5e3ef45dc0be431d7411de292259857a96fe
tree02581d44634b115154106b0fe48e7cc85aabaabd
parent8b4f3f0e401070c31df3f97049eac6e6582be1b0
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