pinctrl-bcm2835: Fix cut-and-paste error in "pull" parsing
[projects/modsched/linux.git] / drivers / pinctrl / bcm / pinctrl-bcm2835.c
index 61ef002..5821f46 100644 (file)
@@ -818,7 +818,7 @@ static int bcm2835_pctl_dt_node_to_map(struct pinctrl_dev *pctldev,
                }
                if (num_pulls) {
                        err = of_property_read_u32_index(np, "brcm,pull",
-                                       (num_funcs > 1) ? i : 0, &pull);
+                                       (num_pulls > 1) ? i : 0, &pull);
                        if (err)
                                goto out;
                        err = bcm2835_pctl_dt_node_to_map_pull(pc, np, pin,