All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: intc compile warning fix
@ 2009-06-03  8:34 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2009-06-03  8:34 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@igel.co.jp>

This patch fixes a compile warning in the intc code
for the CONFIG_SPARSE_IRQ=n case.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 drivers/sh/intc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- 0001/drivers/sh/intc.c
+++ work/drivers/sh/intc.c	2009-06-03 12:55:05.000000000 +0900
@@ -671,7 +671,7 @@ unsigned int intc_evt2irq(unsigned int v
 
 void __init register_intc_controller(struct intc_desc *desc)
 {
-	unsigned int i, k, smp, cpu = smp_processor_id();
+	unsigned int i, k, smp;
 	struct intc_desc_int *d;
 
 	d = alloc_bootmem(sizeof(*d));
@@ -778,7 +778,7 @@ void __init register_intc_controller(str
 			continue;
 
 #ifdef CONFIG_SPARSE_IRQ
-		irq_desc = irq_to_desc_alloc_cpu(irq, cpu);
+		irq_desc = irq_to_desc_alloc_cpu(irq, smp_processor_id());
 		if (unlikely(!irq_desc)) {
 			printk(KERN_INFO "can not get irq_desc for %d\n", irq);
 			continue;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-03  8:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-03  8:34 [PATCH] sh: intc compile warning fix Magnus Damm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.