Commit a85990b3 authored by Mark Brown's avatar Mark Brown Committed by Greg Kroah-Hartman

gpiolib: Convert to devres_release()

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d926d0e4
...@@ -83,8 +83,7 @@ EXPORT_SYMBOL(devm_gpio_request); ...@@ -83,8 +83,7 @@ EXPORT_SYMBOL(devm_gpio_request);
void devm_gpio_free(struct device *dev, unsigned int gpio) 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));
gpio_free(gpio);
} }
EXPORT_SYMBOL(devm_gpio_free); EXPORT_SYMBOL(devm_gpio_free);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment