diff options
author | Jin Park <jinyoungp@nvidia.com> | 2011-08-19 17:11:42 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-22 23:29:00 -0700 |
commit | fb57c5867e4a90d1849213636039a757fdc92bb2 (patch) | |
tree | 38e297cf75ec8ee9e241c416b8d12f9557d7e3fe /arch/arm/mach-tegra/pinmux.c | |
parent | 0a2f62a59d00f07468a30bb0f9130877bbccdb10 (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.
Original-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>
Rebase-Id: Rdcf3a9747fab2f3aace0f7ee4b5b39f5ae497549
Diffstat (limited to 'arch/arm/mach-tegra/pinmux.c')
-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 8596c91a0c54..7bdf6a7f8632 100644 --- a/arch/arm/mach-tegra/pinmux.c +++ b/arch/arm/mach-tegra/pinmux.c @@ -327,7 +327,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) { |