diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-03 18:15:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-04 16:33:17 -0700 |
commit | a85990b3b126e4fa443f1cbc18250a92c144ac27 (patch) | |
tree | 93a6c9e070b62bb1aa96c31e0c1b5ec64bcc7299 /drivers/gpio/devres.c | |
parent | d926d0e4c74cfcb42a05e91d1cdf698b41e1e118 (diff) | |
download | lwn-a85990b3b126e4fa443f1cbc18250a92c144ac27.tar.gz lwn-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); |