diff options
author | Hui Wang <[email protected]> | 2012-06-20 18:13:47 +0800 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2012-07-03 21:51:08 +0200 |
commit | 18071610677fc491a226fa6d5471c89a26ce670d (patch) | |
tree | f83b998237f11acec3bd5afb3efa6b7717037284 /lib/mpi/mpi-inline.h | |
parent | 27e8461cd5906921f6faac5bcf7a6753600062d5 (diff) |
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 <[email protected]>
Cc: Shawn Guo <[email protected]>
Signed-off-by: Hui Wang <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions