diff options
author | Jin Park <jinyoungp@nvidia.com> | 2011-08-19 17:11:42 +0900 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-08-19 15:36:31 -0700 |
commit | 2cb7615e6400838bbeeb8270c7af9e85b54a134f (patch) | |
tree | 20d4fc70a0752b64b9c4444aa45dd859d9754665 /arch | |
parent | ac8bc7975d7ec09adfa86b223d5aa60abe9bd125 (diff) |
arm: tegra: pinmux: Fix RSVD search condition.
There is the potential problem in RSVD search routine, if mux function
index is masked by 0x3.
Change-Id: Ieb823db5a304c0db6e898f29193d32bac3e34c38
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/48093
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/pinmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/pinmux.c b/arch/arm/mach-tegra/pinmux.c index c0d9d8ad488e..9b5b4d00a583 100644 --- a/arch/arm/mach-tegra/pinmux.c +++ b/arch/arm/mach-tegra/pinmux.c @@ -322,7 +322,7 @@ static int tegra_pinmux_set_func(const struct tegra_pingroup_config *config) if (func & TEGRA_MUX_RSVD) { for (i = 0; i < 4; i++) { - if (pingroups[pg].funcs[i] & func) + if (pingroups[pg].funcs[i] & TEGRA_MUX_RSVD) mux = i; if (pingroups[pg].funcs[i] == func) { |