From: Hui Wang Date: Wed, 20 Jun 2012 10:13:47 +0000 (+0800) Subject: pinctrl: pinctrl-imx: fix map setting problem if NO_PAD_CTL is set X-Git-Tag: v3.6-rc1~114^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18071610677fc491a226fa6d5471c89a26ce670d;p=pandora-kernel.git pinctrl: pinctrl-imx: fix map setting problem if NO_PAD_CTL is set new_map is allocated according to map_num instead of grp->npins, if a pin or some pins of a group has NO_PAD_CTL property, the map_num and the grp->npin are different definitely. When we set mapping information to the new_map[], we should skip those pins with NO_PAD_CTL from index, otherwise it is possible the driver will aceesss to a unallocated region. Acked-by: Dong Aisheng Cc: Shawn Guo Signed-off-by: Hui Wang Signed-off-by: Linus Walleij --- Reading git-diff-tree failed