diff options
Diffstat (limited to 'drivers/sh')
-rw-r--r-- | drivers/sh/pfc/gpio.c | 6 | ||||
-rw-r--r-- | drivers/sh/pfc/pinctrl.c | 20 |
2 files changed, 12 insertions, 14 deletions
diff --git a/drivers/sh/pfc/gpio.c b/drivers/sh/pfc/gpio.c index 038fa071382a..6a24f07c2013 100644 --- a/drivers/sh/pfc/gpio.c +++ b/drivers/sh/pfc/gpio.c | |||
@@ -165,7 +165,7 @@ static int sh_pfc_gpio_match(struct gpio_chip *gc, void *data) | |||
165 | return !!strstr(gc->label, data); | 165 | return !!strstr(gc->label, data); |
166 | } | 166 | } |
167 | 167 | ||
168 | static int __devinit sh_pfc_gpio_probe(struct platform_device *pdev) | 168 | static int sh_pfc_gpio_probe(struct platform_device *pdev) |
169 | { | 169 | { |
170 | struct sh_pfc_chip *chip; | 170 | struct sh_pfc_chip *chip; |
171 | struct gpio_chip *gc; | 171 | struct gpio_chip *gc; |
@@ -184,7 +184,7 @@ static int __devinit sh_pfc_gpio_probe(struct platform_device *pdev) | |||
184 | return 0; | 184 | return 0; |
185 | } | 185 | } |
186 | 186 | ||
187 | static int __devexit sh_pfc_gpio_remove(struct platform_device *pdev) | 187 | static int sh_pfc_gpio_remove(struct platform_device *pdev) |
188 | { | 188 | { |
189 | struct sh_pfc_chip *chip = platform_get_drvdata(pdev); | 189 | struct sh_pfc_chip *chip = platform_get_drvdata(pdev); |
190 | int ret; | 190 | int ret; |
@@ -199,7 +199,7 @@ static int __devexit sh_pfc_gpio_remove(struct platform_device *pdev) | |||
199 | 199 | ||
200 | static struct platform_driver sh_pfc_gpio_driver = { | 200 | static struct platform_driver sh_pfc_gpio_driver = { |
201 | .probe = sh_pfc_gpio_probe, | 201 | .probe = sh_pfc_gpio_probe, |
202 | .remove = __devexit_p(sh_pfc_gpio_remove), | 202 | .remove = sh_pfc_gpio_remove, |
203 | .driver = { | 203 | .driver = { |
204 | .name = KBUILD_MODNAME, | 204 | .name = KBUILD_MODNAME, |
205 | .owner = THIS_MODULE, | 205 | .owner = THIS_MODULE, |
diff --git a/drivers/sh/pfc/pinctrl.c b/drivers/sh/pfc/pinctrl.c index 0646bf6e7889..4109b769eac0 100644 --- a/drivers/sh/pfc/pinctrl.c +++ b/drivers/sh/pfc/pinctrl.c | |||
@@ -328,10 +328,10 @@ static struct pinctrl_desc sh_pfc_pinctrl_desc = { | |||
328 | .confops = &sh_pfc_pinconf_ops, | 328 | .confops = &sh_pfc_pinconf_ops, |
329 | }; | 329 | }; |
330 | 330 | ||
331 | static inline void __devinit sh_pfc_map_one_gpio(struct sh_pfc *pfc, | 331 | static inline void sh_pfc_map_one_gpio(struct sh_pfc *pfc, |
332 | struct sh_pfc_pinctrl *pmx, | 332 | struct sh_pfc_pinctrl *pmx, |
333 | struct pinmux_gpio *gpio, | 333 | struct pinmux_gpio *gpio, |
334 | unsigned offset) | 334 | unsigned offset) |
335 | { | 335 | { |
336 | struct pinmux_data_reg *dummy; | 336 | struct pinmux_data_reg *dummy; |
337 | unsigned long flags; | 337 | unsigned long flags; |
@@ -351,8 +351,7 @@ static inline void __devinit sh_pfc_map_one_gpio(struct sh_pfc *pfc, | |||
351 | } | 351 | } |
352 | 352 | ||
353 | /* pinmux ranges -> pinctrl pin descs */ | 353 | /* pinmux ranges -> pinctrl pin descs */ |
354 | static int __devinit sh_pfc_map_gpios(struct sh_pfc *pfc, | 354 | static int sh_pfc_map_gpios(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) |
355 | struct sh_pfc_pinctrl *pmx) | ||
356 | { | 355 | { |
357 | unsigned long flags; | 356 | unsigned long flags; |
358 | int i; | 357 | int i; |
@@ -396,8 +395,7 @@ static int __devinit sh_pfc_map_gpios(struct sh_pfc *pfc, | |||
396 | return 0; | 395 | return 0; |
397 | } | 396 | } |
398 | 397 | ||
399 | static int __devinit sh_pfc_map_functions(struct sh_pfc *pfc, | 398 | static int sh_pfc_map_functions(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) |
400 | struct sh_pfc_pinctrl *pmx) | ||
401 | { | 399 | { |
402 | unsigned long flags; | 400 | unsigned long flags; |
403 | int i, fn; | 401 | int i, fn; |
@@ -421,7 +419,7 @@ static int __devinit sh_pfc_map_functions(struct sh_pfc *pfc, | |||
421 | return 0; | 419 | return 0; |
422 | } | 420 | } |
423 | 421 | ||
424 | static int __devinit sh_pfc_pinctrl_probe(struct platform_device *pdev) | 422 | static int sh_pfc_pinctrl_probe(struct platform_device *pdev) |
425 | { | 423 | { |
426 | struct sh_pfc *pfc; | 424 | struct sh_pfc *pfc; |
427 | int ret; | 425 | int ret; |
@@ -465,7 +463,7 @@ free_pads: | |||
465 | return ret; | 463 | return ret; |
466 | } | 464 | } |
467 | 465 | ||
468 | static int __devexit sh_pfc_pinctrl_remove(struct platform_device *pdev) | 466 | static int sh_pfc_pinctrl_remove(struct platform_device *pdev) |
469 | { | 467 | { |
470 | struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev); | 468 | struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev); |
471 | 469 | ||
@@ -482,7 +480,7 @@ static int __devexit sh_pfc_pinctrl_remove(struct platform_device *pdev) | |||
482 | 480 | ||
483 | static struct platform_driver sh_pfc_pinctrl_driver = { | 481 | static struct platform_driver sh_pfc_pinctrl_driver = { |
484 | .probe = sh_pfc_pinctrl_probe, | 482 | .probe = sh_pfc_pinctrl_probe, |
485 | .remove = __devexit_p(sh_pfc_pinctrl_remove), | 483 | .remove = sh_pfc_pinctrl_remove, |
486 | .driver = { | 484 | .driver = { |
487 | .name = DRV_NAME, | 485 | .name = DRV_NAME, |
488 | .owner = THIS_MODULE, | 486 | .owner = THIS_MODULE, |