Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309679
b: refs/heads/master
c: ec51167
h: refs/heads/master
i:
  309677: b7747a4
  309675: 06466ac
  309671: 6f6d1f9
  309663: a9e9a26
v: v3
  • Loading branch information
Linus Walleij authored and Anton Vorontsov committed May 5, 2012
1 parent 5abf7d0 commit dd6db8b
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: cc28e17100a6b051ef966de81bb2d4a97b2a6645
refs/heads/master: ec511672b97383107d87e86921b1f0392bc1d000
4 changes: 2 additions & 2 deletions trunk/drivers/power/ab8500_btemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,12 +978,12 @@ static int __devinit ab8500_btemp_probe(struct platform_device *pdev)

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

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

0 comments on commit dd6db8b

Please sign in to comment.