History

Merge remote-tracking branches 'regulator/fix/anatop' and 'regulator/fix/max77620' into regulator-linus

Mark Brown committed 10 years ago

Commit a29a36f3 parents 4c2e07c 8a092e6 91ff8112 files · +7 −2Browse files

Unified · Split

2 files
  1. drivers/regulator/anatop-regulator.c +1 −1
  2. drivers/regulator/max77620-regulator.c +6 −1
drivers/regulator/anatop-regulator.c+1−1
@@ -296,7 +296,7 @@ static int anatop_regulator_probe(struct platform_device *pdev) · 295 unmodified lines
296296 if (!sreg->sel && !strcmp(sreg->name, "vddpu"))
297297 sreg->sel = 22;
298298
299− if (!sreg->sel) {
299+ if (!sreg->bypass && !sreg->sel) {
300300 dev_err(&pdev->dev, "Failed to read a valid default voltage selector.\n");
301301 return -EINVAL;
302302 }
drivers/regulator/max77620-regulator.c+6−1
@@ -123,6 +123,9 @@ static int max77620_regulator_set_fps_src(struct max77620_regulator *pmic, · 122 unmodified lines
123123 unsigned int val;
124124 int ret;
125125
126+ if (!rinfo)
127+ return 0;
128+
126129 switch (fps_src) {
127130 case MAX77620_FPS_SRC_0:
128131 case MAX77620_FPS_SRC_1:
@@ -171,6 +174,9 @@ static int max77620_regulator_set_fps_slots(struct max77620_regulator *pmic, · 42 unmodified lines
171174 int pd = rpdata->active_fps_pd_slot;
172175 int ret = 0;
173176
177+ if (!rinfo)
178+ return 0;
179+
174180 if (is_suspend) {
175181 pu = rpdata->suspend_fps_pu_slot;
176182 pd = rpdata->suspend_fps_pd_slot;
@@ -680,7 +686,6 @@ static struct max77620_regulator_info max77620_regs_info[MAX77620_NUM_REGS] = { · 503 unmodified lines
680686 RAIL_SD(SD1, sd1, "in-sd1", SD1, 600000, 1550000, 12500, 0x22, SD1),
681687 RAIL_SD(SD2, sd2, "in-sd2", SDX, 600000, 3787500, 12500, 0xFF, NONE),
682688 RAIL_SD(SD3, sd3, "in-sd3", SDX, 600000, 3787500, 12500, 0xFF, NONE),
683− RAIL_SD(SD4, sd4, "in-sd4", SDX, 600000, 3787500, 12500, 0xFF, NONE),
684689
685690 RAIL_LDO(LDO0, ldo0, "in-ldo0-1", N, 800000, 2375000, 25000),
686691 RAIL_LDO(LDO1, ldo1, "in-ldo0-1", N, 800000, 2375000, 25000),