mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
gpiolib: Convert to devres_release()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d926d0e4c7
commit
a85990b3b1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user