aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/spear
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/spear')
-rw-r--r--drivers/pinctrl/spear/pinctrl-plgpio.c5
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear.c11
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear.h11
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear1310.c2
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear1340.c2
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear300.c2
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear310.c2
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear320.c2
8 files changed, 17 insertions, 20 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-plgpio.c b/drivers/pinctrl/spear/pinctrl-plgpio.c
index 4c045053bbdd..3cf4ecd9302c 100644
--- a/drivers/pinctrl/spear/pinctrl-plgpio.c
+++ b/drivers/pinctrl/spear/pinctrl-plgpio.c
@@ -451,8 +451,7 @@ int spear310_o2p(int offset)
451 return offset + 2; 451 return offset + 2;
452} 452}
453 453
454static int __devinit plgpio_probe_dt(struct platform_device *pdev, 454static int plgpio_probe_dt(struct platform_device *pdev, struct plgpio *plgpio)
455 struct plgpio *plgpio)
456{ 455{
457 struct device_node *np = pdev->dev.of_node; 456 struct device_node *np = pdev->dev.of_node;
458 int ret = -EINVAL; 457 int ret = -EINVAL;
@@ -522,7 +521,7 @@ static int __devinit plgpio_probe_dt(struct platform_device *pdev,
522end: 521end:
523 return ret; 522 return ret;
524} 523}
525static int __devinit plgpio_probe(struct platform_device *pdev) 524static int plgpio_probe(struct platform_device *pdev)
526{ 525{
527 struct device_node *np = pdev->dev.of_node; 526 struct device_node *np = pdev->dev.of_node;
528 struct plgpio *plgpio; 527 struct plgpio *plgpio;
diff --git a/drivers/pinctrl/spear/pinctrl-spear.c b/drivers/pinctrl/spear/pinctrl-spear.c
index 922c057521a1..6a7dae70db08 100644
--- a/drivers/pinctrl/spear/pinctrl-spear.c
+++ b/drivers/pinctrl/spear/pinctrl-spear.c
@@ -82,9 +82,8 @@ static int set_mode(struct spear_pmx *pmx, int mode)
82 return 0; 82 return 0;
83} 83}
84 84
85void __devinit 85void pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup,
86pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, 86 unsigned count, u16 reg)
87 unsigned count, u16 reg)
88{ 87{
89 int i, j; 88 int i, j;
90 89
@@ -93,7 +92,7 @@ pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup,
93 gpio_pingroup[i].muxregs[j].reg = reg; 92 gpio_pingroup[i].muxregs[j].reg = reg;
94} 93}
95 94
96void __devinit pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg) 95void pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg)
97{ 96{
98 struct spear_pingroup *pgroup; 97 struct spear_pingroup *pgroup;
99 struct spear_modemux *modemux; 98 struct spear_modemux *modemux;
@@ -358,8 +357,8 @@ static struct pinctrl_desc spear_pinctrl_desc = {
358 .owner = THIS_MODULE, 357 .owner = THIS_MODULE,
359}; 358};
360 359
361int __devinit spear_pinctrl_probe(struct platform_device *pdev, 360int spear_pinctrl_probe(struct platform_device *pdev,
362 struct spear_pinctrl_machdata *machdata) 361 struct spear_pinctrl_machdata *machdata)
363{ 362{
364 struct device_node *np = pdev->dev.of_node; 363 struct device_node *np = pdev->dev.of_node;
365 struct resource *res; 364 struct resource *res;
diff --git a/drivers/pinctrl/spear/pinctrl-spear.h b/drivers/pinctrl/spear/pinctrl-spear.h
index 1be46ecc6d91..dc8bf85ecb2a 100644
--- a/drivers/pinctrl/spear/pinctrl-spear.h
+++ b/drivers/pinctrl/spear/pinctrl-spear.h
@@ -192,12 +192,11 @@ static inline void pmx_writel(struct spear_pmx *pmx, u32 val, u32 reg)
192 writel_relaxed(val, pmx->vbase + reg); 192 writel_relaxed(val, pmx->vbase + reg);
193} 193}
194 194
195void __devinit pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg); 195void pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg);
196void __devinit 196void pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup,
197pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, 197 unsigned count, u16 reg);
198 unsigned count, u16 reg); 198int spear_pinctrl_probe(struct platform_device *pdev,
199int __devinit spear_pinctrl_probe(struct platform_device *pdev, 199 struct spear_pinctrl_machdata *machdata);
200 struct spear_pinctrl_machdata *machdata);
201int spear_pinctrl_remove(struct platform_device *pdev); 200int spear_pinctrl_remove(struct platform_device *pdev);
202 201
203#define SPEAR_PIN_0_TO_101 \ 202#define SPEAR_PIN_0_TO_101 \
diff --git a/drivers/pinctrl/spear/pinctrl-spear1310.c b/drivers/pinctrl/spear/pinctrl-spear1310.c
index e40d785a3fc2..1a8bbfec60ca 100644
--- a/drivers/pinctrl/spear/pinctrl-spear1310.c
+++ b/drivers/pinctrl/spear/pinctrl-spear1310.c
@@ -2699,7 +2699,7 @@ static struct of_device_id spear1310_pinctrl_of_match[] = {
2699 {}, 2699 {},
2700}; 2700};
2701 2701
2702static int __devinit spear1310_pinctrl_probe(struct platform_device *pdev) 2702static int spear1310_pinctrl_probe(struct platform_device *pdev)
2703{ 2703{
2704 return spear_pinctrl_probe(pdev, &spear1310_machdata); 2704 return spear_pinctrl_probe(pdev, &spear1310_machdata);
2705} 2705}
diff --git a/drivers/pinctrl/spear/pinctrl-spear1340.c b/drivers/pinctrl/spear/pinctrl-spear1340.c
index 8deaaff3156c..873966e2b99f 100644
--- a/drivers/pinctrl/spear/pinctrl-spear1340.c
+++ b/drivers/pinctrl/spear/pinctrl-spear1340.c
@@ -2015,7 +2015,7 @@ static struct of_device_id spear1340_pinctrl_of_match[] = {
2015 {}, 2015 {},
2016}; 2016};
2017 2017
2018static int __devinit spear1340_pinctrl_probe(struct platform_device *pdev) 2018static int spear1340_pinctrl_probe(struct platform_device *pdev)
2019{ 2019{
2020 return spear_pinctrl_probe(pdev, &spear1340_machdata); 2020 return spear_pinctrl_probe(pdev, &spear1340_machdata);
2021} 2021}
diff --git a/drivers/pinctrl/spear/pinctrl-spear300.c b/drivers/pinctrl/spear/pinctrl-spear300.c
index f48e466e605a..4777c0d0e730 100644
--- a/drivers/pinctrl/spear/pinctrl-spear300.c
+++ b/drivers/pinctrl/spear/pinctrl-spear300.c
@@ -653,7 +653,7 @@ static struct of_device_id spear300_pinctrl_of_match[] = {
653 {}, 653 {},
654}; 654};
655 655
656static int __devinit spear300_pinctrl_probe(struct platform_device *pdev) 656static int spear300_pinctrl_probe(struct platform_device *pdev)
657{ 657{
658 int ret; 658 int ret;
659 659
diff --git a/drivers/pinctrl/spear/pinctrl-spear310.c b/drivers/pinctrl/spear/pinctrl-spear310.c
index 5b954c19a6d2..06c7e6f1c7f2 100644
--- a/drivers/pinctrl/spear/pinctrl-spear310.c
+++ b/drivers/pinctrl/spear/pinctrl-spear310.c
@@ -378,7 +378,7 @@ static struct of_device_id spear310_pinctrl_of_match[] = {
378 {}, 378 {},
379}; 379};
380 380
381static int __devinit spear310_pinctrl_probe(struct platform_device *pdev) 381static int spear310_pinctrl_probe(struct platform_device *pdev)
382{ 382{
383 int ret; 383 int ret;
384 384
diff --git a/drivers/pinctrl/spear/pinctrl-spear320.c b/drivers/pinctrl/spear/pinctrl-spear320.c
index e9a5e6d39242..b8e290a8c8c9 100644
--- a/drivers/pinctrl/spear/pinctrl-spear320.c
+++ b/drivers/pinctrl/spear/pinctrl-spear320.c
@@ -3417,7 +3417,7 @@ static struct of_device_id spear320_pinctrl_of_match[] = {
3417 {}, 3417 {},
3418}; 3418};
3419 3419
3420static int __devinit spear320_pinctrl_probe(struct platform_device *pdev) 3420static int spear320_pinctrl_probe(struct platform_device *pdev)
3421{ 3421{
3422 int ret; 3422 int ret;
3423 3423