Skip to content

Commit

Permalink
pcm037 board support: Fix eth interrupt gpio setting
Browse files Browse the repository at this point in the history
gpio_direction_input needs the gpio number, not the pin description.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Sascha Hauer committed Apr 16, 2009
1 parent 1b3c9bf commit f8e5143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-mx3/pcm037.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f8e5143

Please sign in to comment.