Просмотр исходного кода

Merge remote-tracking branch 'regulator/fix/ti-abb' into regulator-linus

Mark Brown 12 лет назад
Родитель
Сommit
2a2bec6554
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      drivers/regulator/ti-abb-regulator.c

+ 1 - 1
drivers/regulator/ti-abb-regulator.c

@@ -615,7 +615,7 @@ static int ti_abb_init_table(struct device *dev, struct ti_abb *abb,
 					pname, *volt_table, vset_mask);
 					pname, *volt_table, vset_mask);
 			continue;
 			continue;
 		}
 		}
-		info->vset = efuse_val & vset_mask >> __ffs(vset_mask);
+		info->vset = (efuse_val & vset_mask) >> __ffs(vset_mask);
 		dev_dbg(dev, "[%d]v=%d vset=%x\n", i, *volt_table, info->vset);
 		dev_dbg(dev, "[%d]v=%d vset=%x\n", i, *volt_table, info->vset);
 check_abb:
 check_abb:
 		switch (info->opp_sel) {
 		switch (info->opp_sel) {