gpio: drop retval check enforcing from gpiochip_remove()
authorLinus Walleij <[email protected]>
Wed, 23 Jul 2014 08:47:49 +0000 (10:47 +0200)
committerLinus Walleij <[email protected]>
Wed, 23 Jul 2014 08:47:49 +0000 (10:47 +0200)
As we start to decomission the return value from gpiochip_remove()
the compilers emit warnings due to the function being tagged
__must_check. So drop this until we remove the return value
altogether.

Cc: Abdoulaye Berthe <[email protected]>
Suggested-by: Stephen Rothwell <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
include/linux/gpio/driver.h

index 573e4f3243d0527ae95c5dec90ef02694346ab82..ca3024554a2d115eba529d9cff5f79fab63b34c7 100644 (file)
@@ -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 __must_check gpiochip_remove(struct gpio_chip *chip);
+extern int gpiochip_remove(struct gpio_chip *chip);
 extern struct gpio_chip *gpiochip_find(void *data,
                              int (*match)(struct gpio_chip *chip, void *data));