]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
gpio: davinci: Use devm_gpiochip_add_data in place of gpiochip_add_data
authorKeerthy <j-keerthy@ti.com>
Thu, 20 Jul 2017 09:42:16 +0000 (15:12 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:12 +0000 (15:01 +0200)
commit8327e1ba12aa0e513e517fc254c053fecb0d2df5
tree6d4df8a2a4f3422dad8b8aca47d791f183ab544e
parent1a20c3f8e8c28357b63829ae4b16a212a4a7ef31
gpio: davinci: Use devm_gpiochip_add_data in place of gpiochip_add_data

Use the devm version of gpiochip_add_data and pass on the
return value. This avoids memory leak due to gpiochip_add_data
in case the driver is unbound.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c