summaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorabdoulaye berthe2014-07-05 18:28:50 +0200
committerLinus Walleij2014-09-23 17:51:36 +0200
commite1db1706c86ee455f25eeaeadeda827e1e02310f (patch)
tree5ac9a8c7397a911a5f8eacff25625fb4548fa43b /include/linux/gpio
parenttty: sc16is7xx: remove retval from gpiochip_remove() (diff)
downloadkernel-qcow2-linux-e1db1706c86ee455f25eeaeadeda827e1e02310f.tar.gz
kernel-qcow2-linux-e1db1706c86ee455f25eeaeadeda827e1e02310f.tar.xz
kernel-qcow2-linux-e1db1706c86ee455f25eeaeadeda827e1e02310f.zip
gpio: gpiolib: set gpiochip_remove retval to void
This avoids handling gpiochip remove error in device remove handler. Signed-off-by: Abdoulaye Berthe <berthe.ab@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index a2de58fffd19..560bf7fa614f 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -141,7 +141,7 @@ extern const char *gpiochip_is_requested(struct gpio_chip *chip,
/* add/remove chips */
extern int gpiochip_add(struct gpio_chip *chip);
-extern int gpiochip_remove(struct gpio_chip *chip);
+extern void gpiochip_remove(struct gpio_chip *chip);
extern struct gpio_chip *gpiochip_find(void *data,
int (*match)(struct gpio_chip *chip, void *data));