diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-tz1090-pdc.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-tz1090-pdc.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/pinctrl/pinctrl-tz1090-pdc.c b/drivers/pinctrl/pinctrl-tz1090-pdc.c index 5bf01c28925e..41e81a35cabb 100644 --- a/drivers/pinctrl/pinctrl-tz1090-pdc.c +++ b/drivers/pinctrl/pinctrl-tz1090-pdc.c | |||
@@ -574,33 +574,6 @@ static int tz1090_pdc_pinctrl_enable(struct pinctrl_dev *pctldev, | |||
574 | return 0; | 574 | return 0; |
575 | } | 575 | } |
576 | 576 | ||
577 | static void tz1090_pdc_pinctrl_disable(struct pinctrl_dev *pctldev, | ||
578 | unsigned int function, | ||
579 | unsigned int group) | ||
580 | { | ||
581 | struct tz1090_pdc_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); | ||
582 | const struct tz1090_pdc_pingroup *grp = &tz1090_pdc_groups[group]; | ||
583 | |||
584 | dev_dbg(pctldev->dev, "%s(func=%u (%s), group=%u (%s))\n", | ||
585 | __func__, | ||
586 | function, tz1090_pdc_functions[function].name, | ||
587 | group, tz1090_pdc_groups[group].name); | ||
588 | |||
589 | /* is it even a mux? */ | ||
590 | if (grp->drv) | ||
591 | return; | ||
592 | |||
593 | /* does this group even control the function? */ | ||
594 | if (function != grp->func) | ||
595 | return; | ||
596 | |||
597 | /* record the pin being unmuxed and update mux bit */ | ||
598 | spin_lock(&pmx->lock); | ||
599 | pmx->mux_en &= ~BIT(grp->pins[0]); | ||
600 | tz1090_pdc_pinctrl_mux(pmx, grp); | ||
601 | spin_unlock(&pmx->lock); | ||
602 | } | ||
603 | |||
604 | static const struct tz1090_pdc_pingroup *find_mux_group( | 577 | static const struct tz1090_pdc_pingroup *find_mux_group( |
605 | struct tz1090_pdc_pmx *pmx, | 578 | struct tz1090_pdc_pmx *pmx, |
606 | unsigned int pin) | 579 | unsigned int pin) |
@@ -662,7 +635,6 @@ static struct pinmux_ops tz1090_pdc_pinmux_ops = { | |||
662 | .get_function_name = tz1090_pdc_pinctrl_get_func_name, | 635 | .get_function_name = tz1090_pdc_pinctrl_get_func_name, |
663 | .get_function_groups = tz1090_pdc_pinctrl_get_func_groups, | 636 | .get_function_groups = tz1090_pdc_pinctrl_get_func_groups, |
664 | .enable = tz1090_pdc_pinctrl_enable, | 637 | .enable = tz1090_pdc_pinctrl_enable, |
665 | .disable = tz1090_pdc_pinctrl_disable, | ||
666 | .gpio_request_enable = tz1090_pdc_pinctrl_gpio_request_enable, | 638 | .gpio_request_enable = tz1090_pdc_pinctrl_gpio_request_enable, |
667 | .gpio_disable_free = tz1090_pdc_pinctrl_gpio_disable_free, | 639 | .gpio_disable_free = tz1090_pdc_pinctrl_gpio_disable_free, |
668 | }; | 640 | }; |