Skip to content
Commit 8327e1ba authored by Keerthy's avatar Keerthy Committed by Linus Walleij
Browse files

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: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1a20c3f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment