From: Sachin Kamat Date: Thu, 19 Sep 2013 11:58:07 +0000 (+0530) Subject: gpio: gpio-74x164: Remove redundant spi_set_drvdata X-Git-Tag: v3.13-rc1~120^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49f1d6bc5add49be7c03d83386f931c224b1d2cb;p=profile%2Fivi%2Fkernel-x86-ivi.git gpio: gpio-74x164: Remove redundant spi_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Cc: Gabor Juhos Signed-off-by: Linus Walleij --- 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);