linux-mips
[Top] [All Lists]

MIPS: AR7/BCM63xx: fix gpio_to_irq() return value

To: Ralf Baechle <ralf@linux-mips.org>
Subject: MIPS: AR7/BCM63xx: fix gpio_to_irq() return value
From: Yoichi Yuasa <yuasa@linux-mips.org>
Date: Mon, 24 May 2010 17:36:24 +0900
Cc: yuasa@linux-mips.org, linux-mips <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=8+AeqzQqarO1h4RA3AABrbZg4smy3gQWIQVeN0zlK+0=; b=f3BoFiwVypyyJYa5ZIv8uUu6IupWVSc5qq+YpVsHwYLuaB+SB7aZ7gORS1a+nywtqH Yq6a9YKAzeJrgyr6as9MF61B50mCz+liCDMdQJMnK7SedxPSYHiXSCNWJrxZZ9DnLSBo SwvpKpeI6X7zZlIvjmaNyrA8Rl1cPkR5K3MgY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=KWrS3WPdCMEu7L13TG58AA7cfkAbiAYuPaox93Tuy5wbInW1SPtqmpbQnQeIlolMSj wpjeaYwekc57QLbC3iitPJvicw9k96W+pFDN3TpTbZcSXi8meGrd6ZD3XykapyNm+s1o 54kmPsPZWWd53v8Ao6AeZogv7qlI8kye8lPd8=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
The return value of gpio_to_irq() is not a pointer.
It's integer.

Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
---
 arch/mips/include/asm/mach-ar7/gpio.h     |    2 +-
 arch/mips/include/asm/mach-bcm63xx/gpio.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/include/asm/mach-ar7/gpio.h 
b/arch/mips/include/asm/mach-ar7/gpio.h
index 73f9b16..abc317c 100644
--- a/arch/mips/include/asm/mach-ar7/gpio.h
+++ b/arch/mips/include/asm/mach-ar7/gpio.h
@@ -24,7 +24,7 @@
 #define AR7_GPIO_MAX 32
 #define NR_BUILTIN_GPIO AR7_GPIO_MAX
 
-#define gpio_to_irq(gpio)      NULL
+#define gpio_to_irq(gpio)      -1
 
 #define gpio_get_value __gpio_get_value
 #define gpio_set_value __gpio_set_value
diff --git a/arch/mips/include/asm/mach-bcm63xx/gpio.h 
b/arch/mips/include/asm/mach-bcm63xx/gpio.h
index 7cda8c0..1eb534d 100644
--- a/arch/mips/include/asm/mach-bcm63xx/gpio.h
+++ b/arch/mips/include/asm/mach-bcm63xx/gpio.h
@@ -3,7 +3,7 @@
 
 #include <bcm63xx_gpio.h>
 
-#define gpio_to_irq(gpio)      NULL
+#define gpio_to_irq(gpio)      -1
 
 #define gpio_get_value __gpio_get_value
 #define gpio_set_value __gpio_set_value
-- 
1.7.1


<Prev in Thread] Current Thread [Next in Thread>