diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-07 09:12:09 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-07 09:12:09 +0000 |
commit | 96455c222d2b7bc4033fc43ffd0411684faba4fc (patch) | |
tree | 930f467989f1e2507454640de05a859e481bc3e3 /target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c | |
parent | 8ae34a4329aab53b0f39a69241c81b9ac26618f1 (diff) |
Fix the gpio handling and flash resource declaration, thanks to Daniel Gimpelevich
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8366 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c')
-rw-r--r-- | target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c b/target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c index aa245a052b..96a9c9d37f 100644 --- a/target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c +++ b/target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c @@ -30,13 +30,12 @@ #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, }, }; |