You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
driver:gpio remove all usage of gpio_remove retval in driver
this remove all reference to gpio_remove retval in all driver except pinctrl and gpio. the same thing is done for gpio and pinctrl in two different patches. Signed-off-by: Abdoulaye Berthe <berthe.ab@gmail.com> Acked-by: Michael Büsch <m@bues.ch> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
2134cb997f
commit
88d5e520aa
@@ -319,14 +319,8 @@ static int pca9532_destroy_devices(struct pca9532_data *data, int n_devs)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_LEDS_PCA9532_GPIO
|
||||
if (data->gpio.dev) {
|
||||
int err = gpiochip_remove(&data->gpio);
|
||||
if (err) {
|
||||
dev_err(&data->client->dev, "%s failed, %d\n",
|
||||
"gpiochip_remove()", err);
|
||||
return err;
|
||||
}
|
||||
}
|
||||
if (data->gpio.dev)
|
||||
gpiochip_remove(&data->gpio);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -667,11 +667,8 @@ static int tca6507_probe_gpios(struct i2c_client *client,
|
||||
|
||||
static void tca6507_remove_gpio(struct tca6507_chip *tca)
|
||||
{
|
||||
if (tca->gpio.ngpio) {
|
||||
int err = gpiochip_remove(&tca->gpio);
|
||||
dev_err(&tca->client->dev, "%s failed, %d\n",
|
||||
"gpiochip_remove()", err);
|
||||
}
|
||||
if (tca->gpio.ngpio)
|
||||
gpiochip_remove(&tca->gpio);
|
||||
}
|
||||
#else /* CONFIG_GPIOLIB */
|
||||
static int tca6507_probe_gpios(struct i2c_client *client,
|
||||
|
||||
Reference in New Issue
Block a user