aboutsummaryrefslogtreecommitdiff
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorUwe Kleine-König2018-10-05 21:42:06 +0200
committerLinus Walleij2018-11-05 08:54:42 +0100
commit48207d7595d2be604e21228e5a93aaff17e4b808 (patch)
tree874c0f976260e4e2db5da3d8512df60f9bcd3ba1 /include/linux/gpio
parent25451945648af488077ed61afc59a79710422f31 (diff)
gpio: drop devm_gpiochip_remove()
There is hardly any reason to call devm_gpiochip_remove() because the driver core handles calling gpiochip_remove() automatically. To make it harder to introduce new (and probably unneeded) callers, drop the function. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 2db62b550b95..f70d976e1395 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -422,7 +422,6 @@ static inline int gpiochip_add(struct gpio_chip *chip)
extern void gpiochip_remove(struct gpio_chip *chip);
extern int devm_gpiochip_add_data(struct device *dev, struct gpio_chip *chip,
void *data);
-extern void devm_gpiochip_remove(struct device *dev, struct gpio_chip *chip);
extern struct gpio_chip *gpiochip_find(void *data,
int (*match)(struct gpio_chip *chip, void *data));