[PATCH v2 1/3] gpio: davinci: Use devm_gpiochip_add_data in place of gpiochip_add_data

Linus Walleij linus.walleij at linaro.org
Wed Aug 2 02:23:17 PDT 2017


On Thu, Jul 20, 2017 at 11:42 AM, Keerthy <j-keerthy at ti.com> wrote:

> 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 at ti.com>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list