mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
pinctrl: lantiq: Remove ltq_pmx_disable() function
Current code adds empty ltq_pmx_disable() because pinmux_check_ops() requires
this callback to be defined.
This is not required since commit 02b50ce4cb
"pinctrl: make pinmux disable function optional".
Thus remove ltq_pmx_disable() function.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
826d6ca8f9
commit
5c084ec820
@ -275,16 +275,6 @@ static int ltq_pmx_enable(struct pinctrl_dev *pctrldev,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ltq_pmx_disable(struct pinctrl_dev *pctrldev,
|
|
||||||
unsigned func,
|
|
||||||
unsigned group)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Nothing to do here. However, pinconf_check_ops() requires this
|
|
||||||
* callback to be defined.
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ltq_pmx_gpio_request_enable(struct pinctrl_dev *pctrldev,
|
static int ltq_pmx_gpio_request_enable(struct pinctrl_dev *pctrldev,
|
||||||
struct pinctrl_gpio_range *range,
|
struct pinctrl_gpio_range *range,
|
||||||
unsigned pin)
|
unsigned pin)
|
||||||
@ -312,7 +302,6 @@ static struct pinmux_ops ltq_pmx_ops = {
|
|||||||
.get_function_name = ltq_pmx_func_name,
|
.get_function_name = ltq_pmx_func_name,
|
||||||
.get_function_groups = ltq_pmx_get_groups,
|
.get_function_groups = ltq_pmx_get_groups,
|
||||||
.enable = ltq_pmx_enable,
|
.enable = ltq_pmx_enable,
|
||||||
.disable = ltq_pmx_disable,
|
|
||||||
.gpio_request_enable = ltq_pmx_gpio_request_enable,
|
.gpio_request_enable = ltq_pmx_gpio_request_enable,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user