commit | 8327e1ba12aa0e513e517fc254c053fecb0d2df5 | [log] [tgz] |
---|---|---|
author | Keerthy <j-keerthy@ti.com> | Thu Jul 20 15:12:16 2017 +0530 |
committer | Linus Walleij <linus.walleij@linaro.org> | Mon Aug 14 15:01:12 2017 +0200 |
tree | 6d4df8a2a4f3422dad8b8aca47d791f183ab544e | |
parent | 1a20c3f8e8c28357b63829ae4b16a212a4a7ef31 [diff] |
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>