diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-19 07:58:07 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-09-23 06:51:30 -0400 |
commit | 49f1d6bc5add49be7c03d83386f931c224b1d2cb (patch) | |
tree | d8b4b3fd1383ff0be5b7cadd3bd3295d9f81a2cd | |
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>
-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) | |||
176 | return ret; | 176 | return ret; |
177 | 177 | ||
178 | exit_destroy: | 178 | exit_destroy: |
179 | spi_set_drvdata(spi, NULL); | ||
180 | mutex_destroy(&chip->lock); | 179 | mutex_destroy(&chip->lock); |
181 | return ret; | 180 | return ret; |
182 | } | 181 | } |
@@ -190,8 +189,6 @@ static int gen_74x164_remove(struct spi_device *spi) | |||
190 | if (chip == NULL) | 189 | if (chip == NULL) |
191 | return -ENODEV; | 190 | return -ENODEV; |
192 | 191 | ||
193 | spi_set_drvdata(spi, NULL); | ||
194 | |||
195 | ret = gpiochip_remove(&chip->gpio_chip); | 192 | ret = gpiochip_remove(&chip->gpio_chip); |
196 | if (!ret) | 193 | if (!ret) |
197 | mutex_destroy(&chip->lock); | 194 | mutex_destroy(&chip->lock); |