Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: abx500: retire phandle config mechanism

The abx500 pin control driver supported a method of fetching the
generic config from a phandle to a separate node using the
"ste,config" as a phandle. This is not used in any device trees
and not documented in the bindings, so drop this support.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+1 -13
+1 -13
drivers/pinctrl/nomadik/pinctrl-abx500.c
··· 891 891 const char *function = NULL; 892 892 unsigned long *configs; 893 893 unsigned int nconfigs = 0; 894 - bool has_config = 0; 895 894 struct property *prop; 896 - struct device_node *np_config; 897 895 898 896 ret = of_property_read_string(np, "function", &function); 899 897 if (ret >= 0) { ··· 915 917 } 916 918 917 919 ret = pinconf_generic_parse_dt_config(np, &configs, &nconfigs); 918 - if (nconfigs) 919 - has_config = 1; 920 - np_config = of_parse_phandle(np, "ste,config", 0); 921 - if (np_config) { 922 - ret = pinconf_generic_parse_dt_config(np_config, &configs, 923 - &nconfigs); 924 - if (ret) 925 - goto exit; 926 - has_config |= nconfigs; 927 - } 928 - if (has_config) { 920 + if (nconfigs) { 929 921 const char *gpio_name; 930 922 const char *pin; 931 923