diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-03 19:15:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-05 01:33:17 +0200 |
commit | a85990b3b126e4fa443f1cbc18250a92c144ac27 (patch) | |
tree | 93a6c9e070b62bb1aa96c31e0c1b5ec64bcc7299 /drivers/gpio/devres.c | |
parent | devres: Add devres_release() (diff) | |
download | linux-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.c | 3 |
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); |