]> 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)
commita25d2dc591ba6aad11e61138deccb372062a1ad5
tree02581d44634b115154106b0fe48e7cc85aabaabd
parent7685c1e632a77a58ff399e6839902e39d2705c78
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