diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-19 17:28:07 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-09-23 12:51:30 +0200 |
commit | 49f1d6bc5add49be7c03d83386f931c224b1d2cb (patch) | |
tree | d8b4b3fd1383ff0be5b7cadd3bd3295d9f81a2cd /drivers/gpio/gpio-74x164.c | |
parent | 7af2755d7883105eaf1cc17a4d289ce85c2a954e (diff) |
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>
Diffstat (limited to 'drivers/gpio/gpio-74x164.c')
-rw-r--r-- | drivers/gpio/gpio-74x164.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c index 5d518d5db7a0..a51e893e0592 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); |