public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] Fix wrong assumption in acpi_gsi_to_irq
@ 2007-07-26  6:31 Kenji Kaneshige
  0 siblings, 0 replies; only message in thread
From: Kenji Kaneshige @ 2007-07-26  6:31 UTC (permalink / raw)
  To: linux-ia64

The ia64's acpi_gsi_to_irq() function assumes irq = vector. But in
fact irq can be different from vector. This patch fix this wrong
assumption.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>

---
 arch/ia64/kernel/acpi.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

Index: linux-2.6.23-rc1/arch/ia64/kernel/acpi.c
=================================--- linux-2.6.23-rc1.orig/arch/ia64/kernel/acpi.c
+++ linux-2.6.23-rc1/arch/ia64/kernel/acpi.c
@@ -739,16 +739,15 @@ int __init acpi_boot_init(void)
 
 int acpi_gsi_to_irq(u32 gsi, unsigned int *irq)
 {
-	int vector;
+	int tmp;
 
 	if (has_8259 && gsi < 16)
 		*irq = isa_irq_to_vector(gsi);
 	else {
-		vector = gsi_to_vector(gsi);
-		if (vector = -1)
+		tmp = gsi_to_irq(gsi);
+		if (tmp = -1)
 			return -1;
-
-		*irq = vector;
+		*irq = tmp;
 	}
 	return 0;
 }



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

only message in thread, other threads:[~2007-07-26  6:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26  6:31 [PATCH 2/3] Fix wrong assumption in acpi_gsi_to_irq Kenji Kaneshige

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox