diff options
-rw-r--r-- | drivers/pinctrl/pinctrl-st.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index 1845870413ea..d0fb44a095e9 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c | |||
@@ -1172,9 +1172,7 @@ static int st_pctl_dt_parse_groups(struct device_node *np, | |||
1172 | const __be32 *list; | 1172 | const __be32 *list; |
1173 | struct property *pp; | 1173 | struct property *pp; |
1174 | struct st_pinconf *conf; | 1174 | struct st_pinconf *conf; |
1175 | phandle phandle; | ||
1176 | struct device_node *pins; | 1175 | struct device_node *pins; |
1177 | u32 pin; | ||
1178 | int i = 0, npins = 0, nr_props; | 1176 | int i = 0, npins = 0, nr_props; |
1179 | 1177 | ||
1180 | pins = of_get_child_by_name(np, "st,pins"); | 1178 | pins = of_get_child_by_name(np, "st,pins"); |
@@ -1212,8 +1210,8 @@ static int st_pctl_dt_parse_groups(struct device_node *np, | |||
1212 | conf = &grp->pin_conf[i]; | 1210 | conf = &grp->pin_conf[i]; |
1213 | 1211 | ||
1214 | /* bank & offset */ | 1212 | /* bank & offset */ |
1215 | phandle = be32_to_cpup(list++); | 1213 | be32_to_cpup(list++); |
1216 | pin = be32_to_cpup(list++); | 1214 | be32_to_cpup(list++); |
1217 | conf->pin = of_get_named_gpio(pins, pp->name, 0); | 1215 | conf->pin = of_get_named_gpio(pins, pp->name, 0); |
1218 | conf->name = pp->name; | 1216 | conf->name = pp->name; |
1219 | grp->pins[i] = conf->pin; | 1217 | grp->pins[i] = conf->pin; |