Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165385
b: refs/heads/master
c: c53ad7f
h: refs/heads/master
i:
  165383: d511761
v: v3
  • Loading branch information
Mark Brown authored and Liam Girdwood committed Sep 22, 2009
1 parent c513d18 commit c29240a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6db182822e292575b5beb56c003e95f616407f4
refs/heads/master: c53ad7fe5759cea10137c9e176d14f8c8f22d286
3 changes: 3 additions & 0 deletions trunk/drivers/regulator/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ static int regulator_fixed_voltage_probe(struct platform_device *pdev)

drvdata = kzalloc(sizeof(struct fixed_voltage_data), GFP_KERNEL);
if (drvdata == NULL) {
dev_err(&pdev->dev, "Failed to allocate device data\n");
ret = -ENOMEM;
goto err;
}

drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL);
if (drvdata->desc.name == NULL) {
dev_err(&pdev->dev, "Failed to allocate supply name\n");
ret = -ENOMEM;
goto err;
}
Expand All @@ -90,6 +92,7 @@ static int regulator_fixed_voltage_probe(struct platform_device *pdev)
config->init_data, drvdata);
if (IS_ERR(drvdata->dev)) {
ret = PTR_ERR(drvdata->dev);
dev_err(&pdev->dev, "Failed to register regulator: %d\n", ret);
goto err_name;
}

Expand Down

0 comments on commit c29240a

Please sign in to comment.