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:
7d645df
)
gpio: moxart: Use devm_gpiochip_add_data() for gpio registration
author
Laxman Dewangan
<ldewangan@nvidia.com>
Mon, 22 Feb 2016 12:13:28 +0000
(17:43 +0530)
committer
Laxman Dewangan
<ldewangan@nvidia.com>
Tue, 23 Feb 2016 15:05:36 +0000
(20:35 +0530)
Use devm_gpiochip_add_data() for GPIO registration.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/gpio/gpio-moxart.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-moxart.c
b/drivers/gpio/gpio-moxart.c
index ca604538ebf7e74acb523af0c2dc5a7e4ced5777..869002b7a571a70c092e8c2dff6b136188b4e06f 100644
(file)
--- a/
drivers/gpio/gpio-moxart.c
+++ b/
drivers/gpio/gpio-moxart.c
@@
-63,7
+63,7
@@
static int moxart_gpio_probe(struct platform_device *pdev)
gc->parent = dev;
gc->owner = THIS_MODULE;
- ret =
gpiochip_add_data(
gc, NULL);
+ ret =
devm_gpiochip_add_data(dev,
gc, NULL);
if (ret) {
dev_err(dev, "%s: gpiochip_add failed\n",
dev->of_node->full_name);