gpio: remove all usage of gpio_remove retval in driver/gpio
Signed-off-by: abdoulaye berthe <berthe.ab@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

parent
38ed0187d2
commit
9f5132ae82
@@ -217,11 +217,7 @@ gpiochip_add_err:
|
||||
static void __exit it8761e_gpio_exit(void)
|
||||
{
|
||||
if (gpio_ba) {
|
||||
int ret = gpiochip_remove(&it8761e_gpio_chip);
|
||||
|
||||
WARN(ret, "%s(): gpiochip_remove() failed, ret=%d\n",
|
||||
__func__, ret);
|
||||
|
||||
gpiochip_remove(&it8761e_gpio_chip);
|
||||
release_region(gpio_ba, GPIO_IOSIZE);
|
||||
gpio_ba = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user