Skip to content

Commit

Permalink
drivers/gpio/it8761e_gpio: check return value of gpiochip_remove()
Browse files Browse the repository at this point in the history
This eliminates the following build warning:

drivers/gpio/it8761e_gpio.c: In function `it8761e_gpio_exit':
drivers/gpio/it8761e_gpio.c:220: warning: ignoring return value of `gpiochip_remove', declared with attribute warn_unused_result

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Denis Turischev <denis@compulab.co.il>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Daniel Mack authored and Linus Torvalds committed May 27, 2010
1 parent 8081c84 commit 48baa18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpio/it8761e_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ static int __init it8761e_gpio_init(void)
static void __exit it8761e_gpio_exit(void)
{
if (gpio_ba) {
gpiochip_remove(&it8761e_gpio_chip);
int ret = gpiochip_remove(&it8761e_gpio_chip);

WARN(ret, "%s(): gpiochip_remove() failed, ret=%d\n",
__func__, ret);

release_region(gpio_ba, GPIO_IOSIZE);
gpio_ba = 0;
Expand Down

0 comments on commit 48baa18

Please sign in to comment.