]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: intel-mid: switch to devm_gpiochip_add_data()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 19 Jun 2016 20:49:57 +0000 (23:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:10:49 +0000 (18:10 +0200)
commit992cd8a125464e6150bc33b80b1cd5ef662e2470
treeef1d59d1f6bc27fd2fbdd0b1c2541c9945408151
parent039a2b49648d745caa221389f652dd18a7d244be
gpio: intel-mid: switch to devm_gpiochip_add_data()

commit dd3b204af11b50be6dc77e18b88b3c646bba354c upstream.

The error handling is not correct since the commit 3f7dbfd8eea9 ("gpio:
intel-mid: switch to using gpiolib irqchip helpers"). Switch to devres API to
fix the potential resource leak.

Fixes: commit 3f7dbfd8eea9 ("gpio: intel-mid: switch to using gpiolib irqchip helpers")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-intel-mid.c