From: Patrice Chotard Date: Mon, 8 Oct 2012 14:50:24 +0000 (+0200) Subject: pinctrl/nomadik: allow to support several ranges per GPIO bank X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~94^2~38^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d853ca5bae2f728f0e7e1afa98b3a160020af4a;p=pandora-kernel.git pinctrl/nomadik: allow to support several ranges per GPIO bank With DB8500 the number of GPIO chips = number GPIO bank = number of GPIO ranges. With DB8540, a new GPIO range configuration is used, some GPIO banks can have several GPIO ranges. For example, DB8540 GPIO bank0 (GPIO0 to GPIO32) have 2 GPIO ranges: - GPIO0 to GPIO17 : routed - GPIO18 to GPIO21 : hole - GPIO22 to GPIO28 : routed - GPIO29 to GPIO32 : hole Previously, during nmk_pinctrl_probe(), all GPIO ranges were parsed, as GPIO ranges are larger than the number of GPIO chips, a warning occurs. This commit allows each bank to have several GPIO ranges. Signed-off-by: Patrice Chotard Signed-off-by: Linus Walleij --- Reading git-diff-tree failed