aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
217 217
218 if (!r_width) 218 if (!r_width)
219 break; 219 break;
220 for (n = 0; n < (r_width / f_width) * 1 << f_width; n++) { 220 for (n = 0; n < (r_width / f_width) * (1 << f_width); n++) {
221 if (config_reg->enum_ids[n] == enum_id) { 221 if (config_reg->enum_ids[n] == enum_id) {
222 *crp = config_reg; 222 *crp = config_reg;
223 *indexp = n; 223 *indexp = n;