Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361577
b: refs/heads/master
c: aa3b5d2
h: refs/heads/master
i:
  361575: 3d49f2d
v: v3
  • Loading branch information
Sachin Kamat authored and Zhang Rui committed Mar 11, 2013
1 parent 864d04a commit 4628d7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 5095526faf38472bf04af919797a1f01a0ccb558
refs/heads/master: aa3b5d222da5922ab1883eba3e9d8f92ad148155
8 changes: 3 additions & 5 deletions trunk/drivers/thermal/kirkwood_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ static int kirkwood_thermal_probe(struct platform_device *pdev)
if (!priv)
return -ENOMEM;

priv->sensor = devm_request_and_ioremap(&pdev->dev, res);
if (!priv->sensor) {
dev_err(&pdev->dev, "Failed to request_ioremap memory\n");
return -EADDRNOTAVAIL;
}
priv->sensor = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(priv->sensor))
return PTR_ERR(priv->sensor);

thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0,
priv, &ops, NULL, 0, 0);
Expand Down

0 comments on commit 4628d7f

Please sign in to comment.