From: Stefan Agner Date: Sat, 6 Sep 2014 16:25:04 +0000 (+0200) Subject: pinctrl: imx: detect uninitialized pins X-Git-Tag: fixes-for-v3.18-merge-window~33^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dac1918a491;p=pandora-kernel.git 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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed