From: Sachin Kamat Date: Thu, 19 Sep 2013 12:00:53 +0000 (+0530) Subject: gpio: gpio-mc33880: Remove redundant spi_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8fa82b16304b5cdcddb929afbfebfddfb7adb716;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: gpio-mc33880: Remove redundant spi_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-mc33880.c b/drivers/gpio/gpio-mc33880.c index 3fd2caa4a2e0..c0b7835f5136 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);