aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/it8761e_gpio.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@caiaq.de>2010-05-26 14:42:26 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-27 09:12:42 -0700
commit48baa18b250d5e36ed9f9bb04cdf812d74da08ca (patch)
tree385250c51d75e5d95345e0715d2da55d726adf4f /drivers/gpio/it8761e_gpio.c
parent8081c84c9ce71ef73e591e19f1f7a516cb111e1c (diff)
downloadkernel_goldelico_gta04-48baa18b250d5e36ed9f9bb04cdf812d74da08ca.zip
kernel_goldelico_gta04-48baa18b250d5e36ed9f9bb04cdf812d74da08ca.tar.gz
kernel_goldelico_gta04-48baa18b250d5e36ed9f9bb04cdf812d74da08ca.tar.bz2
drivers/gpio/it8761e_gpio: check return value of gpiochip_remove()
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>
Diffstat (limited to 'drivers/gpio/it8761e_gpio.c')
-rw-r--r--drivers/gpio/it8761e_gpio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/it8761e_gpio.c b/drivers/gpio/it8761e_gpio.c
index 41a9388..48fc43c 100644
--- a/drivers/gpio/it8761e_gpio.c
+++ b/drivers/gpio/it8761e_gpio.c
@@ -217,7 +217,10 @@ gpiochip_add_err:
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;