projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7af2755
)
gpio: gpio-74x164: Remove redundant spi_set_drvdata
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 19 Sep 2013 11:58:07 +0000
(17:28 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 23 Sep 2013 10:51:30 +0000
(12:51 +0200)
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>
drivers/gpio/gpio-74x164.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-74x164.c
b/drivers/gpio/gpio-74x164.c
index 5d518d5db7a0ae4a084f3652cb2ac61067a3dbc6..a51e893e059287f57fea600813d2a16cace4d019 100644
(file)
--- 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);