Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199649
b: refs/heads/master
c: 295bdd9
h: refs/heads/master
i:
  199647: 903fc46
v: v3
  • Loading branch information
Grant Likely committed Jun 2, 2010
1 parent 01bec71 commit 1f615c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: b4a75c91b8a6cb80ba7772f69613025ddf75ebc2
refs/heads/master: 295bdd9c52e57daf995fe80eff8c53938443fa2f
14 changes: 8 additions & 6 deletions trunk/drivers/rtc/rtc-mpc5121.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op,
if (!rtc)
return -ENOMEM;

rtc->regs = of_iomap(op->node, 0);
rtc->regs = of_iomap(op->dev.of_node, 0);
if (!rtc->regs) {
dev_err(&op->dev, "%s: couldn't map io space\n", __func__);
err = -ENOSYS;
Expand All @@ -290,7 +290,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op,

dev_set_drvdata(&op->dev, rtc);

rtc->irq = irq_of_parse_and_map(op->node, 1);
rtc->irq = irq_of_parse_and_map(op->dev.of_node, 1);
err = request_irq(rtc->irq, mpc5121_rtc_handler, IRQF_DISABLED,
"mpc5121-rtc", &op->dev);
if (err) {
Expand All @@ -299,7 +299,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op,
goto out_dispose;
}

rtc->irq_periodic = irq_of_parse_and_map(op->node, 0);
rtc->irq_periodic = irq_of_parse_and_map(op->dev.of_node, 0);
err = request_irq(rtc->irq_periodic, mpc5121_rtc_handler_upd,
IRQF_DISABLED, "mpc5121-rtc_upd", &op->dev);
if (err) {
Expand Down Expand Up @@ -365,9 +365,11 @@ static struct of_device_id mpc5121_rtc_match[] __devinitdata = {
};

static struct of_platform_driver mpc5121_rtc_driver = {
.owner = THIS_MODULE,
.name = "mpc5121-rtc",
.match_table = mpc5121_rtc_match,
.driver = {
.name = "mpc5121-rtc",
.owner = THIS_MODULE,
.of_match_table = mpc5121_rtc_match,
},
.probe = mpc5121_rtc_probe,
.remove = __devexit_p(mpc5121_rtc_remove),
};
Expand Down

0 comments on commit 1f615c1

Please sign in to comment.