aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2011-10-17 18:01:19 +0900
committerPaul Mundt <lethal@linux-sh.org>2011-10-28 14:39:26 +0900
commitc63bcc6ff135397b38cdb510c173e4a6629cede5 (patch)
treea56578d9c6017de03724067a4260fae87d8852a0 /drivers/sh
parentsh: intc: Add IRQ trigger bit field check (diff)
downloadlinux-dev-c63bcc6ff135397b38cdb510c173e4a6629cede5.tar.xz
linux-dev-c63bcc6ff135397b38cdb510c173e4a6629cede5.zip
sh: pfc: get_config_reg() shift clean up
Clean up the f_width shift code in get_config_reg(). Reported-by: Ryusuke Sakato <ryusuke.sakato.bx@renesas.com> Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/pfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sh/pfc.c b/drivers/sh/pfc.c
index 75934e3ea34e..de5e3d65a6fa 100644
--- a/drivers/sh/pfc.c
+++ b/drivers/sh/pfc.c
@@ -217,7 +217,7 @@ static int get_config_reg(struct pinmux_info *gpioc, pinmux_enum_t enum_id,
if (!r_width)
break;
- for (n = 0; n < (r_width / f_width) * 1 << f_width; n++) {
+ for (n = 0; n < (r_width / f_width) * (1 << f_width); n++) {
if (config_reg->enum_ids[n] == enum_id) {
*crp = config_reg;
*indexp = n;