pcm037 board support: Fix eth interrupt gpio setting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 17, 2009 - 2:59 pm

Gitweb:     http://git.kernel.org/linus/f8e5143be765b2c60b9ae96477560d3f46be5e99
Commit:     f8e5143be765b2c60b9ae96477560d3f46be5e99
Parent:     1b3c9bf2cd00e1e8a47177b92900dcff363843cb
Author:     Sascha Hauer <s.hauer@pengutronix.de>
AuthorDate: Sat Apr 4 13:40:39 2009 +0200
Committer:  Sascha Hauer <s.hauer@pengutronix.de>
CommitDate: Thu Apr 16 12:57:13 2009 +0200

    pcm037 board support: Fix eth interrupt gpio setting
    
    gpio_direction_input needs the gpio number, not the pin description.
    
    Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-mx3/pcm037.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c
index c3648ef..b5227d8 100644
--- a/arch/arm/mach-mx3/pcm037.c
+++ b/arch/arm/mach-mx3/pcm037.c
@@ -226,10 +226,10 @@ static void __init mxc_board_init(void)
 	mxc_iomux_setup_pin(MX31_PIN_BATT_LINE__OWIRE, "batt-0wire");
 	mxc_register_device(&mxc_w1_master_device, NULL);
 
-	/* SMSC9215 IRQ pin */
+	/* LAN9217 IRQ pin */
 	if (!mxc_iomux_setup_pin(IOMUX_MODE(MX31_PIN_GPIO3_1, IOMUX_CONFIG_GPIO),
 				"pcm037-eth"))
-		gpio_direction_input(MX31_PIN_GPIO3_1);
+		gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO3_1));
 
 #ifdef CONFIG_I2C_IMX
 	i2c_register_board_info(1, pcm037_i2c_devices,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
pcm037 board support: Fix eth interrupt gpio setting, Linux Kernel Mailing ..., (Fri Apr 17, 2:59 pm)