]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
leds: ns2: use devres API for getting GPIO descriptors
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:33:28 +0000 (00:33 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:41 +0000 (21:56 +0200)
commit528c9515b28d48691f8ef545595be77857e211dc
tree6ae8cbc75a418aacb2165b45dd331220ecec6169
parentf72deb717d5b80b3b90ebcb4e4b73b041e2eb465
leds: ns2: use devres API for getting GPIO descriptors

This drivers leaks GPIO descriptors on driver removal. Use devres API
function devm_gpiod_get_from_of_node instead of gpiod_get_from_of_node
to avoid this.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Cc: Simon Guinot <sguinot@lacie.com>
Cc: Vincent Donnefort <vdonnefort@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Not-for-stable
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-ns2.c