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
@@ -765,12 +765,7 @@ static int pca953x_remove(struct i2c_client *client)
|
||||
}
|
||||
}
|
||||
|
||||
ret = gpiochip_remove(&chip->gpio_chip);
|
||||
if (ret) {
|
||||
dev_err(&client->dev, "%s failed, %d\n",
|
||||
"gpiochip_remove()", ret);
|
||||
return ret;
|
||||
}
|
||||
gpiochip_remove(&chip->gpio_chip);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user