diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-03-05 11:08:36 -0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-03-05 11:08:36 -0800 |
commit | 2534b4a429aa31037c29079c25506c43e71f8f9f (patch) | |
tree | 2474687cf6933ff881ec7b42e0abaff221ce6158 /arch/arm/mach-omap2 | |
parent | dedd5bd33900696f363b6169a41d7d585647d75f (diff) | |
download | blackbird-op-linux-2534b4a429aa31037c29079c25506c43e71f8f9f.tar.gz blackbird-op-linux-2534b4a429aa31037c29079c25506c43e71f8f9f.zip |
ARM: OMAP4: board-4430sdp: don't initialize value that is never used
sdp4430_spi_board_info.irq was initialized to ETH_KS8851_IRQ and in
omap_4430sdp_init() overwritten with gpio_to_irq(ETH_KS8851_IRQ) before
sdp4430_spi_board_info was registered. This is a bit confusing, so
better don't initialize .irq and document that it is set later.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 4e9071589bfb..766f7e47771c 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -322,7 +322,10 @@ static struct spi_board_info sdp4430_spi_board_info[] __initdata = { .bus_num = 1, .chip_select = 0, .max_speed_hz = 24000000, - .irq = ETH_KS8851_IRQ, + /* + * .irq is set to gpio_to_irq(ETH_KS8851_IRQ) + * in omap_4430sdp_init + */ }, }; |