[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110111105439.24448.69863.stgit@bob.linux.org.uk>
Date: Tue, 11 Jan 2011 10:55:32 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: x86@...nel.org, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] gpio: implement x86 gpio_to_irq convert function
From: Alek Du <alek.du@...el.com>
We need this for x86 MID platforms where GPIO interrupts are used. No special
magic is needed so the default 1:1 behaviour will do nicely.
Signed-off-by: Alek Du <alek.du@...el.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@...el.com>
Signed-off-by: Alan Cox <alan@...ux.intel.com>
---
arch/x86/include/asm/gpio.h | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/arch/x86/include/asm/gpio.h b/arch/x86/include/asm/gpio.h
index 49dbfdf..91d915a 100644
--- a/arch/x86/include/asm/gpio.h
+++ b/arch/x86/include/asm/gpio.h
@@ -38,12 +38,9 @@ static inline int gpio_cansleep(unsigned int gpio)
return __gpio_cansleep(gpio);
}
-/*
- * Not implemented, yet.
- */
static inline int gpio_to_irq(unsigned int gpio)
{
- return -ENOSYS;
+ return __gpio_to_irq(gpio);
}
static inline int irq_to_gpio(unsigned int irq)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists