Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302286
b: refs/heads/master
c: b68b45d
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed May 14, 2012
1 parent c8dad3f commit 4dcf33d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: b1a868310e7024650918119d292129446b2f8336
refs/heads/master: b68b45d77d7c23c6d92576d494796912883be4e1
6 changes: 2 additions & 4 deletions trunk/drivers/regulator/wm8994-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)

dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1);

if (!pdata)
return -ENODEV;

ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_ldo), GFP_KERNEL);
if (ldo == NULL) {
dev_err(&pdev->dev, "Unable to allocate private data\n");
Expand All @@ -192,9 +189,10 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
ldo->is_enabled = true;

config.dev = wm8994->dev;
config.init_data = pdata->ldo[id].init_data;
config.driver_data = ldo;
config.regmap = wm8994->regmap;
if (pdata)
config.init_data = pdata->ldo[id].init_data;

ldo->regulator = regulator_register(&wm8994_ldo_desc[id], &config);
if (IS_ERR(ldo->regulator)) {
Expand Down

0 comments on commit 4dcf33d

Please sign in to comment.