Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361576
b: refs/heads/master
c: 5095526
h: refs/heads/master
v: v3
  • Loading branch information
Sachin Kamat authored and Zhang Rui committed Mar 11, 2013
1 parent 3d49f2d commit 864d04a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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: 6bc51b662241738ac292ffa021b345c2aa604230
refs/heads/master: 5095526faf38472bf04af919797a1f01a0ccb558
16 changes: 6 additions & 10 deletions trunk/drivers/thermal/rcar_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,9 @@ static int rcar_thermal_probe(struct platform_device *pdev)
/*
* rcar_has_irq_support() will be enabled
*/
common->base = devm_request_and_ioremap(dev, res);
if (!common->base) {
dev_err(dev, "Unable to ioremap thermal register\n");
return -ENOMEM;
}
common->base = devm_ioremap_resource(dev, res);
if (IS_ERR(common->base))
return PTR_ERR(common->base);

/* enable temperature comparation */
rcar_thermal_common_write(common, ENR, 0x00030303);
Expand All @@ -423,11 +421,9 @@ static int rcar_thermal_probe(struct platform_device *pdev)
return -ENOMEM;
}

priv->base = devm_request_and_ioremap(dev, res);
if (!priv->base) {
dev_err(dev, "Unable to ioremap priv register\n");
return -ENOMEM;
}
priv->base = devm_ioremap_resource(dev, res);
if (IS_ERR(priv->base))
return PTR_ERR(priv->base);

priv->common = common;
priv->id = i;
Expand Down

0 comments on commit 864d04a

Please sign in to comment.