diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-samsung.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-samsung.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index 864fed822f9d..fd7b24cd8908 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c | |||
@@ -549,9 +549,11 @@ static int samsung_gpio_to_irq(struct gpio_chip *gc, unsigned offset) | |||
549 | * Parse the pin names listed in the 'samsung,pins' property and convert it | 549 | * Parse the pin names listed in the 'samsung,pins' property and convert it |
550 | * into a list of gpio numbers are create a pin group from it. | 550 | * into a list of gpio numbers are create a pin group from it. |
551 | */ | 551 | */ |
552 | static int __devinit samsung_pinctrl_parse_dt_pins(struct platform_device *pdev, | 552 | static int samsung_pinctrl_parse_dt_pins(struct platform_device *pdev, |
553 | struct device_node *cfg_np, struct pinctrl_desc *pctl, | 553 | struct device_node *cfg_np, |
554 | unsigned int **pin_list, unsigned int *npins) | 554 | struct pinctrl_desc *pctl, |
555 | unsigned int **pin_list, | ||
556 | unsigned int *npins) | ||
555 | { | 557 | { |
556 | struct device *dev = &pdev->dev; | 558 | struct device *dev = &pdev->dev; |
557 | struct property *prop; | 559 | struct property *prop; |
@@ -596,8 +598,8 @@ static int __devinit samsung_pinctrl_parse_dt_pins(struct platform_device *pdev, | |||
596 | * from device node of the pin-controller. A pin group is formed with all | 598 | * from device node of the pin-controller. A pin group is formed with all |
597 | * the pins listed in the "samsung,pins" property. | 599 | * the pins listed in the "samsung,pins" property. |
598 | */ | 600 | */ |
599 | static int __devinit samsung_pinctrl_parse_dt(struct platform_device *pdev, | 601 | static int samsung_pinctrl_parse_dt(struct platform_device *pdev, |
600 | struct samsung_pinctrl_drv_data *drvdata) | 602 | struct samsung_pinctrl_drv_data *drvdata) |
601 | { | 603 | { |
602 | struct device *dev = &pdev->dev; | 604 | struct device *dev = &pdev->dev; |
603 | struct device_node *dev_np = dev->of_node; | 605 | struct device_node *dev_np = dev->of_node; |
@@ -691,8 +693,8 @@ static int __devinit samsung_pinctrl_parse_dt(struct platform_device *pdev, | |||
691 | } | 693 | } |
692 | 694 | ||
693 | /* register the pinctrl interface with the pinctrl subsystem */ | 695 | /* register the pinctrl interface with the pinctrl subsystem */ |
694 | static int __devinit samsung_pinctrl_register(struct platform_device *pdev, | 696 | static int samsung_pinctrl_register(struct platform_device *pdev, |
695 | struct samsung_pinctrl_drv_data *drvdata) | 697 | struct samsung_pinctrl_drv_data *drvdata) |
696 | { | 698 | { |
697 | struct pinctrl_desc *ctrldesc = &drvdata->pctl; | 699 | struct pinctrl_desc *ctrldesc = &drvdata->pctl; |
698 | struct pinctrl_pin_desc *pindesc, *pdesc; | 700 | struct pinctrl_pin_desc *pindesc, *pdesc; |
@@ -778,8 +780,8 @@ static const struct gpio_chip samsung_gpiolib_chip = { | |||
778 | }; | 780 | }; |
779 | 781 | ||
780 | /* register the gpiolib interface with the gpiolib subsystem */ | 782 | /* register the gpiolib interface with the gpiolib subsystem */ |
781 | static int __devinit samsung_gpiolib_register(struct platform_device *pdev, | 783 | static int samsung_gpiolib_register(struct platform_device *pdev, |
782 | struct samsung_pinctrl_drv_data *drvdata) | 784 | struct samsung_pinctrl_drv_data *drvdata) |
783 | { | 785 | { |
784 | struct samsung_pin_ctrl *ctrl = drvdata->ctrl; | 786 | struct samsung_pin_ctrl *ctrl = drvdata->ctrl; |
785 | struct samsung_pin_bank *bank = ctrl->pin_banks; | 787 | struct samsung_pin_bank *bank = ctrl->pin_banks; |
@@ -816,8 +818,8 @@ fail: | |||
816 | } | 818 | } |
817 | 819 | ||
818 | /* unregister the gpiolib interface with the gpiolib subsystem */ | 820 | /* unregister the gpiolib interface with the gpiolib subsystem */ |
819 | static int __devinit samsung_gpiolib_unregister(struct platform_device *pdev, | 821 | static int samsung_gpiolib_unregister(struct platform_device *pdev, |
820 | struct samsung_pinctrl_drv_data *drvdata) | 822 | struct samsung_pinctrl_drv_data *drvdata) |
821 | { | 823 | { |
822 | struct samsung_pin_ctrl *ctrl = drvdata->ctrl; | 824 | struct samsung_pin_ctrl *ctrl = drvdata->ctrl; |
823 | struct samsung_pin_bank *bank = ctrl->pin_banks; | 825 | struct samsung_pin_bank *bank = ctrl->pin_banks; |
@@ -881,7 +883,7 @@ static struct samsung_pin_ctrl *samsung_pinctrl_get_soc_data( | |||
881 | return ctrl; | 883 | return ctrl; |
882 | } | 884 | } |
883 | 885 | ||
884 | static int __devinit samsung_pinctrl_probe(struct platform_device *pdev) | 886 | static int samsung_pinctrl_probe(struct platform_device *pdev) |
885 | { | 887 | { |
886 | struct samsung_pinctrl_drv_data *drvdata; | 888 | struct samsung_pinctrl_drv_data *drvdata; |
887 | struct device *dev = &pdev->dev; | 889 | struct device *dev = &pdev->dev; |