diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-adi2.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-adi2.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c index 5c44feb54ebb..b02ee4f882c0 100644 --- a/drivers/pinctrl/pinctrl-adi2.c +++ b/drivers/pinctrl/pinctrl-adi2.c | |||
@@ -652,35 +652,6 @@ static int adi_pinmux_enable(struct pinctrl_dev *pctldev, unsigned func_id, | |||
652 | return 0; | 652 | return 0; |
653 | } | 653 | } |
654 | 654 | ||
655 | static void adi_pinmux_disable(struct pinctrl_dev *pctldev, unsigned func_id, | ||
656 | unsigned group_id) | ||
657 | { | ||
658 | struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); | ||
659 | struct gpio_port *port; | ||
660 | struct pinctrl_gpio_range *range; | ||
661 | unsigned long flags; | ||
662 | unsigned short *mux, pin; | ||
663 | |||
664 | mux = (unsigned short *)pinctrl->soc->groups[group_id].mux; | ||
665 | |||
666 | while (*mux) { | ||
667 | pin = P_IDENT(*mux); | ||
668 | |||
669 | range = pinctrl_find_gpio_range_from_pin(pctldev, pin); | ||
670 | if (range == NULL) /* should not happen */ | ||
671 | return; | ||
672 | |||
673 | port = container_of(range->gc, struct gpio_port, chip); | ||
674 | |||
675 | spin_lock_irqsave(&port->lock, flags); | ||
676 | |||
677 | port_setup(port, pin_to_offset(range, pin), true); | ||
678 | mux++; | ||
679 | |||
680 | spin_unlock_irqrestore(&port->lock, flags); | ||
681 | } | ||
682 | } | ||
683 | |||
684 | static int adi_pinmux_get_funcs_count(struct pinctrl_dev *pctldev) | 655 | static int adi_pinmux_get_funcs_count(struct pinctrl_dev *pctldev) |
685 | { | 656 | { |
686 | struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); | 657 | struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); |
@@ -728,7 +699,6 @@ static int adi_pinmux_request_gpio(struct pinctrl_dev *pctldev, | |||
728 | 699 | ||
729 | static struct pinmux_ops adi_pinmux_ops = { | 700 | static struct pinmux_ops adi_pinmux_ops = { |
730 | .enable = adi_pinmux_enable, | 701 | .enable = adi_pinmux_enable, |
731 | .disable = adi_pinmux_disable, | ||
732 | .get_functions_count = adi_pinmux_get_funcs_count, | 702 | .get_functions_count = adi_pinmux_get_funcs_count, |
733 | .get_function_name = adi_pinmux_get_func_name, | 703 | .get_function_name = adi_pinmux_get_func_name, |
734 | .get_function_groups = adi_pinmux_get_groups, | 704 | .get_function_groups = adi_pinmux_get_groups, |