Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49f1d6bc authored by Sachin Kamat's avatar Sachin Kamat Committed by Linus Walleij
Browse files

gpio: gpio-74x164: Remove redundant spi_set_drvdata



Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 7af2755d
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -176,7 +176,6 @@ static int gen_74x164_probe(struct spi_device *spi)
	return ret;

exit_destroy:
	spi_set_drvdata(spi, NULL);
	mutex_destroy(&chip->lock);
	return ret;
}
@@ -190,8 +189,6 @@ static int gen_74x164_remove(struct spi_device *spi)
	if (chip == NULL)
		return -ENODEV;

	spi_set_drvdata(spi, NULL);

	ret = gpiochip_remove(&chip->gpio_chip);
	if (!ret)
		mutex_destroy(&chip->lock);