Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302284
b: refs/heads/master
c: f0b067d
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed May 14, 2012
1 parent 6677d0f commit d6f5090
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd8318cb9e8dea0dcf8ccb15955b48d14ba51e52
refs/heads/master: f0b067d9b6474e5309dd47ab30264cd0a48d4963
5 changes: 3 additions & 2 deletions trunk/drivers/regulator/wm831x-dcdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ static __devinit int wm831x_buckv_probe(struct platform_device *pdev)
}
dcdc->dvs_vsel = ret & WM831X_DC1_DVS_VSEL_MASK;

if (pdata->dcdc[id])
if (pdata && pdata->dcdc[id])
wm831x_buckv_dvs_init(dcdc, pdata->dcdc[id]->driver_data);

config.dev = pdev->dev.parent;
Expand Down Expand Up @@ -846,7 +846,8 @@ static __devinit int wm831x_boostp_probe(struct platform_device *pdev)
dcdc->desc.enable_mask = 1 << id;

config.dev = pdev->dev.parent;
config.init_data = pdata->dcdc[id];
if (pdata)
config.init_data = pdata->dcdc[id];
config.driver_data = dcdc;
config.regmap = wm831x->regmap;

Expand Down

0 comments on commit d6f5090

Please sign in to comment.