summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-19 17:28:07 +0530
committerLinus Walleij <linus.walleij@linaro.org>2013-09-23 12:51:30 +0200
commit49f1d6bc5add49be7c03d83386f931c224b1d2cb (patch)
treed8b4b3fd1383ff0be5b7cadd3bd3295d9f81a2cd
parent7af2755d7883105eaf1cc17a4d289ce85c2a954e (diff)
downloadop-kernel-dev-49f1d6bc5add49be7c03d83386f931c224b1d2cb.zip
op-kernel-dev-49f1d6bc5add49be7c03d83386f931c224b1d2cb.tar.gz
gpio: gpio-74x164: Remove redundant spi_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpio-74x164.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c
index 5d518d5..a51e893 100644
--- a/drivers/gpio/gpio-74x164.c
+++ b/drivers/gpio/gpio-74x164.c
@@ -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);
OpenPOWER on IntegriCloud