diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-19 17:30:53 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-09-23 12:53:13 +0200 |
commit | 8fa82b16304b5cdcddb929afbfebfddfb7adb716 (patch) | |
tree | d56b8d864a8ab4f4eb6e7b82ef4713fbc15dd6ee /drivers/gpio/gpio-mc33880.c | |
parent | 187a53a5ebec6a5d14d57ca12eaa4a106397a134 (diff) | |
download | op-kernel-dev-8fa82b16304b5cdcddb929afbfebfddfb7adb716.zip op-kernel-dev-8fa82b16304b5cdcddb929afbfebfddfb7adb716.tar.gz |
gpio: gpio-mc33880: 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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mc33880.c')
-rw-r--r-- | drivers/gpio/gpio-mc33880.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-mc33880.c b/drivers/gpio/gpio-mc33880.c index 3fd2caa..c0b7835 100644 --- a/drivers/gpio/gpio-mc33880.c +++ b/drivers/gpio/gpio-mc33880.c @@ -142,7 +142,6 @@ static int mc33880_probe(struct spi_device *spi) return ret; exit_destroy: - spi_set_drvdata(spi, NULL); mutex_destroy(&mc->lock); return ret; } @@ -156,8 +155,6 @@ static int mc33880_remove(struct spi_device *spi) if (mc == NULL) return -ENODEV; - spi_set_drvdata(spi, NULL); - ret = gpiochip_remove(&mc->chip); if (!ret) mutex_destroy(&mc->lock); |