Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83948
b: refs/heads/master
c: b1725c9
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Paul Mackerras committed Feb 6, 2008
1 parent 044cf0a commit 60f1cab
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 842decbd674106d63a67e07a2f8cec5af70fdb40
refs/heads/master: b1725c9319aae42d7bd1159fc99e033d5a3076f8
10 changes: 7 additions & 3 deletions trunk/arch/powerpc/sysdev/mpc8xx_pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,19 @@ int mpc8xx_pic_init(void)
goto out;

siu_reg = ioremap(res.start, res.end - res.start + 1);
if (siu_reg == NULL)
return -EINVAL;
if (siu_reg == NULL) {
ret = -EINVAL;
goto out;
}

mpc8xx_pic_host = irq_alloc_host(of_node_get(np), IRQ_HOST_MAP_LINEAR,
mpc8xx_pic_host = irq_alloc_host(np, IRQ_HOST_MAP_LINEAR,
64, &mpc8xx_pic_host_ops, 64);
if (mpc8xx_pic_host == NULL) {
printk(KERN_ERR "MPC8xx PIC: failed to allocate irq host!\n");
ret = -ENOMEM;
goto out;
}
return 0;

out:
of_node_put(np);
Expand Down

0 comments on commit 60f1cab

Please sign in to comment.