* [PATCH] mpc8xx_pic_init(); arch/powerpc/sysdev/mpc8xx_pic.c
@ 2007-11-07 22:08 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2007-11-07 22:08 UTC (permalink / raw)
To: linuxppc-dev
Again: untested
--
iounmap siu_reg on error
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/arch/powerpc/sysdev/mpc8xx_pic.c b/arch/powerpc/sysdev/mpc8xx_pic.c
index 7aa4ff5..1a51251 100644
--- a/arch/powerpc/sysdev/mpc8xx_pic.c
+++ b/arch/powerpc/sysdev/mpc8xx_pic.c
@@ -177,14 +177,15 @@ int mpc8xx_pic_init(void)
siu_reg = ioremap(res.start, res.end - res.start + 1);
if (siu_reg == NULL)
return -EINVAL;
mpc8xx_pic_host = irq_alloc_host(of_node_get(np), IRQ_HOST_MAP_LINEAR,
64, &mpc8xx_pic_host_ops, 64);
if (mpc8xx_pic_host == NULL) {
+ iounmap(siu_reg);
printk(KERN_ERR "MPC8xx PIC: failed to allocate irq host!\n");
ret = -ENOMEM;
}
out:
of_node_put(np);
return ret;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-07 22:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 22:08 [PATCH] mpc8xx_pic_init(); arch/powerpc/sysdev/mpc8xx_pic.c Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).