projects
/
GitHub
/
LineageOS
/
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:
86d3f36
)
gpio: mb86s7x: Remove redundant platform_set_drvdata() call
author
Axel Lin
<axel.lin@ingics.com>
Wed, 9 Mar 2016 12:48:15 +0000
(20:48 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:38:50 +0000
(10:38 +0200)
Set it once is enough, so remove the second platform_set_drvdata() call.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mb86s7x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-mb86s7x.c
b/drivers/gpio/gpio-mb86s7x.c
index 7fffc1d6c0553804ce44f7a866603485babf8a5c..d23a94231a20df3589b22cd7aa50a434371f2e31 100644
(file)
--- a/
drivers/gpio/gpio-mb86s7x.c
+++ b/
drivers/gpio/gpio-mb86s7x.c
@@
-185,8
+185,6
@@
static int mb86s70_gpio_probe(struct platform_device *pdev)
gchip->gc.parent = &pdev->dev;
gchip->gc.base = -1;
- platform_set_drvdata(pdev, gchip);
-
ret = gpiochip_add_data(&gchip->gc, gchip);
if (ret) {
dev_err(&pdev->dev, "couldn't register gpio driver\n");