diff options
Diffstat (limited to 'arch/powerpc/platforms/cell/spider-pic.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spider-pic.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/cell/spider-pic.c b/arch/powerpc/platforms/cell/spider-pic.c index 742a03282b44..608b1ebc56b2 100644 --- a/arch/powerpc/platforms/cell/spider-pic.c +++ b/arch/powerpc/platforms/cell/spider-pic.c | |||
@@ -243,7 +243,6 @@ static unsigned int __init spider_find_cascade_and_node(struct spider_pic *pic) | |||
243 | const u32 *imap, *tmp; | 243 | const u32 *imap, *tmp; |
244 | int imaplen, intsize, unit; | 244 | int imaplen, intsize, unit; |
245 | struct device_node *iic; | 245 | struct device_node *iic; |
246 | struct irq_host *iic_host; | ||
247 | 246 | ||
248 | #if 0 /* Enable that when we have a way to retreive the node as well */ | 247 | #if 0 /* Enable that when we have a way to retreive the node as well */ |
249 | /* First, we check wether we have a real "interrupts" in the device | 248 | /* First, we check wether we have a real "interrupts" in the device |
@@ -289,11 +288,11 @@ static unsigned int __init spider_find_cascade_and_node(struct spider_pic *pic) | |||
289 | * the iic host from the iic OF node, but that way I'm still compatible | 288 | * the iic host from the iic OF node, but that way I'm still compatible |
290 | * with really really old old firmwares for which we don't have a node | 289 | * with really really old old firmwares for which we don't have a node |
291 | */ | 290 | */ |
292 | iic_host = iic_get_irq_host(pic->node_id); | ||
293 | if (iic_host == NULL) | ||
294 | return NO_IRQ; | ||
295 | /* Manufacture an IIC interrupt number of class 2 */ | 291 | /* Manufacture an IIC interrupt number of class 2 */ |
296 | virq = irq_create_mapping(iic_host, 0x20 | unit); | 292 | virq = irq_create_mapping(NULL, |
293 | (pic->node_id << IIC_IRQ_NODE_SHIFT) | | ||
294 | (2 << IIC_IRQ_CLASS_SHIFT) | | ||
295 | unit); | ||
297 | if (virq == NO_IRQ) | 296 | if (virq == NO_IRQ) |
298 | printk(KERN_ERR "spider_pic: failed to map cascade !"); | 297 | printk(KERN_ERR "spider_pic: failed to map cascade !"); |
299 | return virq; | 298 | return virq; |