diff options
Diffstat (limited to 'drivers/sh/pfc/pinctrl.c')
-rw-r--r-- | drivers/sh/pfc/pinctrl.c | 20 |
1 files changed, 9 insertions, 11 deletions
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, |