Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309680
b: refs/heads/master
c: 5f98eb3
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij authored and Anton Vorontsov committed May 5, 2012
1 parent dd6db8b commit 7e3c651
Show file tree
Hide file tree
Showing 2 changed files with 3 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: ec511672b97383107d87e86921b1f0392bc1d000
refs/heads/master: 5f98eb393c6d7a5de3202b7ce9e4439292e952fb
4 changes: 2 additions & 2 deletions trunk/drivers/power/ab8500_fg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2462,12 +2462,12 @@ static int __devinit ab8500_fg_probe(struct platform_device *pdev)

/* get fg specific platform data */
plat_data = pdev->dev.platform_data;
di->pdata = plat_data->fg;
if (!di->pdata) {
if (!plat_data || !plat_data->fg) {
dev_err(di->dev, "no fg platform data supplied\n");
ret = -EINVAL;
goto free_device_info;
}
di->pdata = plat_data->fg;

/* get battery specific platform data */
di->bat = plat_data->battery;
Expand Down

0 comments on commit 7e3c651

Please sign in to comment.