From: Komal Shah Date: Tue, 20 Jun 2006 16:44:11 +0000 (-0700) Subject: [PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x X-Git-Tag: v2.6.17-omap1~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=17cd565fcce6e2387967d26171048017c5c9cfa6;p=linux-2.6-omap-h63xx.git [PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x Use gpmc_cs_get_base_addr for H4 smc91x Signed-off-by: Komal Shah Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 4933fce766c..05eba929332 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c @@ -36,6 +36,7 @@ #include #include #include +#include #include "prcm-regs.h" #include @@ -134,8 +135,6 @@ static struct platform_device h4_flash_device = { static struct resource h4_smc91x_resources[] = { [0] = { - .start = OMAP24XX_ETHR_START, /* Physical */ - .end = OMAP24XX_ETHR_START + 0xf, .flags = IORESOURCE_MEM, }, [1] = { @@ -290,6 +289,9 @@ static inline void __init h4_init_smc91x(void) return; } omap_set_gpio_direction(OMAP24XX_ETHR_GPIO_IRQ, 1); + + h4_smc91x_resources[0].start = gpmc_cs_get_base_addr(1) + 0x300; + h4_smc91x_resources[0].end = h4_smc91x_resources[0].start + 0xf; } static void __init omap_h4_init_irq(void)