diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-12-04 21:12:28 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-07-01 09:57:16 -0400 |
commit | 438196c371cb32f0eacaf2a44166d9a0cf37c4a8 (patch) | |
tree | 8e502f38302ba1226444c73aaa84aae86464583f /arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | |
parent | ed175343b4b53d686e30b1e37fb94e142f56fa2f (diff) |
ARM: imx: eliminate macro IRQ_GPIOx()
This patch changes all the static gpio irq number assigning with
IRQ_GPIOA() ... IRQ_GPIOF() to run-time assigning with gpio_to_irq
call, and in turn eliminates these macros.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/eukrea_mbimx27-baseboard.c')
-rw-r--r-- | arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c index b46cab0ced53..fd3177f9e79a 100644 --- a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | |||
@@ -266,7 +266,7 @@ static struct spi_board_info __maybe_unused | |||
266 | .bus_num = 0, | 266 | .bus_num = 0, |
267 | .chip_select = 0, | 267 | .chip_select = 0, |
268 | .max_speed_hz = 1500000, | 268 | .max_speed_hz = 1500000, |
269 | .irq = IRQ_GPIOD(25), | 269 | /* irq number is run-time assigned */ |
270 | .platform_data = &ads7846_config, | 270 | .platform_data = &ads7846_config, |
271 | .mode = SPI_MODE_2, | 271 | .mode = SPI_MODE_2, |
272 | }, | 272 | }, |
@@ -329,6 +329,7 @@ void __init eukrea_mbimx27_baseboard_init(void) | |||
329 | /* SPI_CS0 init */ | 329 | /* SPI_CS0 init */ |
330 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT); | 330 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT); |
331 | imx27_add_spi_imx0(&eukrea_mbimx27_spi0_data); | 331 | imx27_add_spi_imx0(&eukrea_mbimx27_spi0_data); |
332 | eukrea_mbimx27_spi_board_info[0].irq = gpio_to_irq(IMX_GPIO_NR(4, 25)); | ||
332 | spi_register_board_info(eukrea_mbimx27_spi_board_info, | 333 | spi_register_board_info(eukrea_mbimx27_spi_board_info, |
333 | ARRAY_SIZE(eukrea_mbimx27_spi_board_info)); | 334 | ARRAY_SIZE(eukrea_mbimx27_spi_board_info)); |
334 | 335 | ||