summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/devres.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-03 19:15:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-05 01:33:17 +0200
commita85990b3b126e4fa443f1cbc18250a92c144ac27 (patch)
tree93a6c9e070b62bb1aa96c31e0c1b5ec64bcc7299 /drivers/gpio/devres.c
parentdevres: Add devres_release() (diff)
downloadlinux-a85990b3b126e4fa443f1cbc18250a92c144ac27.tar.xz
linux-a85990b3b126e4fa443f1cbc18250a92c144ac27.zip
gpiolib: Convert to devres_release()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpio/devres.c')
-rw-r--r--drivers/gpio/devres.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/devres.c b/drivers/gpio/devres.c
index 3dd29399cef5..8950f6261bbb 100644
--- a/drivers/gpio/devres.c
+++ b/drivers/gpio/devres.c
@@ -83,8 +83,7 @@ EXPORT_SYMBOL(devm_gpio_request);
void devm_gpio_free(struct device *dev, unsigned int gpio)
{
- WARN_ON(devres_destroy(dev, devm_gpio_release, devm_gpio_match,
+ WARN_ON(devres_release(dev, devm_gpio_release, devm_gpio_match,
&gpio));
- gpio_free(gpio);
}
EXPORT_SYMBOL(devm_gpio_free);