X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fgpio%2Fit8761e_gpio.c;h=48fc43c4bdd11fc2849a2273fcdf10e98267cc91;hb=5fe3a5ae5c09d53b2b3c7a971e1d87ab3a747055;hp=41a9388f2fde03917455e77a9d18149ba3f292dc;hpb=c316ba3b518bc35ce5aef5421135220389f4eb98;p=karo-tx-linux.git diff --git a/drivers/gpio/it8761e_gpio.c b/drivers/gpio/it8761e_gpio.c index 41a9388f2fde..48fc43c4bdd1 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;