summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/freescale/pinctrl-vf610.c
diff options
context:
space:
mode:
authorStefan Agner2014-09-06 18:25:04 +0200
committerLinus Walleij2014-09-23 11:45:47 +0200
commit3dac1918a4912cea9375e76cb3916b751cef22db (patch)
tree7497cb27472c195901735c1b5e6fa926331bd72e /drivers/pinctrl/freescale/pinctrl-vf610.c
parentpinctrl: tegra: Add MIPI pad control (diff)
downloadkernel-qcow2-linux-3dac1918a4912cea9375e76cb3916b751cef22db.tar.gz
kernel-qcow2-linux-3dac1918a4912cea9375e76cb3916b751cef22db.tar.xz
kernel-qcow2-linux-3dac1918a4912cea9375e76cb3916b751cef22db.zip
pinctrl: imx: detect uninitialized pins
The pinctrl driver initialized the register offsets for the pins with 0. On Vybrid an offset of 0 is a valid offset for the pinctrl mux register. So far, this was solved using the ZERO_OFFSET_VALID flag which allowed offsets of 0. However, this does not allow to verify whether a pins struct imx_pmx_func was initialized or not. Use signed offset values for register offsets and initialize those with -1 in order to detect uninitialized offset values reliable. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/freescale/pinctrl-vf610.c')
-rw-r--r--drivers/pinctrl/freescale/pinctrl-vf610.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/freescale/pinctrl-vf610.c b/drivers/pinctrl/freescale/pinctrl-vf610.c
index bddd913d28ba..b788e1578954 100644
--- a/drivers/pinctrl/freescale/pinctrl-vf610.c
+++ b/drivers/pinctrl/freescale/pinctrl-vf610.c
@@ -299,7 +299,7 @@ static const struct pinctrl_pin_desc vf610_pinctrl_pads[] = {
static struct imx_pinctrl_soc_info vf610_pinctrl_info = {
.pins = vf610_pinctrl_pads,
.npins = ARRAY_SIZE(vf610_pinctrl_pads),
- .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG,
+ .flags = SHARE_MUX_CONF_REG,
};
static struct of_device_id vf610_pinctrl_of_match[] = {