Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302321
b: refs/heads/master
c: 7e9a57e
h: refs/heads/master
i:
  302319: 9974518
v: v3
  • Loading branch information
Laxman Dewangan authored and Mark Brown committed May 20, 2012
1 parent 538960d commit 1388451
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 9fc3815e26efd044c1a1d0770b4335cd00c833c0
refs/heads/master: 7e9a57e6267591ddfdd3beaf26f21b5257c5fff8
12 changes: 8 additions & 4 deletions trunk/drivers/regulator/tps65910-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ static struct tps65910_board *tps65910_parse_dt_reg_data(
matches = tps65911_matches;
break;
default:
pr_err("Invalid tps chip version\n");
dev_err(&pdev->dev, "Invalid tps chip version\n");
return NULL;
}

Expand Down Expand Up @@ -1150,12 +1150,16 @@ static __devinit int tps65910_probe(struct platform_device *pdev)
if (!pmic_plat_data && tps65910->dev->of_node)
pmic_plat_data = tps65910_parse_dt_reg_data(pdev);

if (!pmic_plat_data)
if (!pmic_plat_data) {
dev_err(&pdev->dev, "Platform data not found\n");
return -EINVAL;
}

pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL);
if (!pmic)
if (!pmic) {
dev_err(&pdev->dev, "Memory allocation failed for pmic\n");
return -ENOMEM;
}

mutex_init(&pmic->mutex);
pmic->mfd = tps65910;
Expand All @@ -1179,7 +1183,7 @@ static __devinit int tps65910_probe(struct platform_device *pdev)
info = tps65911_regs;
break;
default:
pr_err("Invalid tps chip version\n");
dev_err(&pdev->dev, "Invalid tps chip version\n");
return -ENODEV;
}

Expand Down

0 comments on commit 1388451

Please sign in to comment.