From: Mark Brown Date: Thu, 3 May 2012 17:15:14 +0000 (+0100) Subject: gpiolib: Convert to devres_release() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a85990b3b126e4fa443f1cbc18250a92c144ac27;p=linux-beck.git gpiolib: Convert to devres_release() Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- 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);