gpiolib: Convert to devres_release()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 3 May 2012 17:15:14 +0000 (18:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 May 2012 23:33:17 +0000 (16:33 -0700)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/devres.c

index 3dd2939..8950f62 100644 (file)
@@ -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);