Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353716
b: refs/heads/master
c: e2cbdf3
h: refs/heads/master
v: v3
  • Loading branch information
Thierry Reding authored and Greg Kroah-Hartman committed Jan 25, 2013
1 parent 573e4c4 commit 212a1c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: b0de774c6334dccdcd43a7ef46155a1f3a52a954
refs/heads/master: e2cbdf3cb72571f1231cd7c3cb14009f9b8df707
7 changes: 4 additions & 3 deletions trunk/drivers/power/jz4740-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/io.h>

#include <linux/delay.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/mfd/core.h>
#include <linux/power_supply.h>
Expand Down Expand Up @@ -266,9 +267,9 @@ static int jz_battery_probe(struct platform_device *pdev)

mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);

jz_battery->base = devm_request_and_ioremap(&pdev->dev, mem);
if (!jz_battery->base)
return -EBUSY;
jz_battery->base = devm_ioremap_resource(&pdev->dev, mem);
if (IS_ERR(jz_battery->base))
return PTR_ERR(jz_battery->base);

battery = &jz_battery->battery;
battery->name = pdata->info.name;
Expand Down

0 comments on commit 212a1c4

Please sign in to comment.