diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 15:05:48 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 15:56:55 +0100 |
commit | 6266d67c1e6287c2f419a8888b2e6b44b66ceda9 (patch) | |
tree | 8c34af7f3197d92967b08259b05270dc4db295aa /backport/backport-include/linux | |
parent | 7fd372bb69218ae56413ac36252142db67d35df8 (diff) |
backports: add devm_gpio_free()
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux')
-rw-r--r-- | backport/backport-include/linux/gpio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backport/backport-include/linux/gpio.h b/backport/backport-include/linux/gpio.h index 8fb7211d..964f1f36 100644 --- a/backport/backport-include/linux/gpio.h +++ b/backport/backport-include/linux/gpio.h @@ -9,6 +9,7 @@ int devm_gpio_request(struct device *dev, unsigned gpio, const char *label); int devm_gpio_request_one(struct device *dev, unsigned gpio, unsigned long flags, const char *label); +void devm_gpio_free(struct device *dev, unsigned int gpio); #else static inline int devm_gpio_request(struct device *dev, unsigned gpio, const char *label) @@ -23,6 +24,11 @@ static inline int devm_gpio_request_one(struct device *dev, unsigned gpio, WARN_ON(1); return -EINVAL; } + +static inline void devm_gpio_free(struct device *dev, unsigned int gpio) +{ + WARN_ON(1); +} #endif /* CONFIG_GPIOLIB */ #endif |