diff --git a/drivers/sh/pfc.c b/drivers/sh/pfc.c index 75934e3ea34e848b4e3612b031d77635da1451d1..de5e3d65a6fac3416f1fce9e37f0ae103cd4c337 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;