Fix the gpio handling and flash resource declaration, thanks to Daniel Gimpelevich
[openwrt-10.03/.git] / target / linux / rdc-2.6 / files / arch / i386 / mach-rdc / platform.c
index aa245a052be09c1088ba0b73b3c5b7fe43a8e728..96a9c9d37fe475067f7319d938f3dff564ff7b92 100644 (file)
 #include <linux/platform_device.h>
 
 #include <asm/gpio.h>
-#include <asm/mach-rdc/rdc321x_defs.h>
 
 /* FIXME : Flash */
 static struct resource rdc_flash_resource[] = {
        [0] = {
-               .start = RDC_FLASH_BASE,
-               .end = RDC_FLASH_BASE+CONFIG_MTD_RDC3210_SIZE-1,
+               .start = (u32)-CONFIG_MTD_RDC3210_SIZE,
+               .end = (u32)-1,
                .flags = IORESOURCE_MEM,
        },
 };