diff options
author | Alexander Clouter <alex@digriz.org.uk> | 2012-05-12 10:16:59 -0400 |
---|---|---|
committer | Andrew Lunn <andrew@lunn.ch> | 2012-05-14 12:13:02 -0400 |
commit | 167473a5937f54aaac4c3c01a192a81214933a23 (patch) | |
tree | ee3bffd0efedc718071e3c7b7a04c90c3a326f39 /arch/arm/mach-orion5x | |
parent | 9f234997dac445a64f5d9672bf21649e6d745bb9 (diff) |
ARM: orion5x: ts78xx fix NAND resource off by one
Changelog:
v2: use DEFINE_RES_MEM as suggesed by Hartley Sweeten
v1: inital release
Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'arch/arm/mach-orion5x')
-rw-r--r-- | arch/arm/mach-orion5x/ts78xx-setup.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c index c41f27bd7184..d8670cbae770 100644 --- a/arch/arm/mach-orion5x/ts78xx-setup.c +++ b/arch/arm/mach-orion5x/ts78xx-setup.c | |||
@@ -292,11 +292,8 @@ static struct platform_nand_data ts78xx_ts_nand_data = { | |||
292 | }, | 292 | }, |
293 | }; | 293 | }; |
294 | 294 | ||
295 | static struct resource ts78xx_ts_nand_resources = { | 295 | static struct resource ts78xx_ts_nand_resources |
296 | .start = TS_NAND_DATA, | 296 | = DEFINE_RES_MEM(TS_NAND_DATA, 4); |
297 | .end = TS_NAND_DATA + 4, | ||
298 | .flags = IORESOURCE_MEM, | ||
299 | }; | ||
300 | 297 | ||
301 | static struct platform_device ts78xx_ts_nand_device = { | 298 | static struct platform_device ts78xx_ts_nand_device = { |
302 | .name = "gen_nand", | 299 | .name = "gen_nand", |
@@ -332,11 +329,8 @@ static void ts78xx_ts_nand_unload(void) | |||
332 | ****************************************************************************/ | 329 | ****************************************************************************/ |
333 | #define TS_RNG_DATA (TS78XX_FPGA_REGS_PHYS_BASE | 0x044) | 330 | #define TS_RNG_DATA (TS78XX_FPGA_REGS_PHYS_BASE | 0x044) |
334 | 331 | ||
335 | static struct resource ts78xx_ts_rng_resource = { | 332 | static struct resource ts78xx_ts_rng_resource |
336 | .flags = IORESOURCE_MEM, | 333 | = DEFINE_RES_MEM(TS_RNG_DATA, 4); |
337 | .start = TS_RNG_DATA, | ||
338 | .end = TS_RNG_DATA + 4 - 1, | ||
339 | }; | ||
340 | 334 | ||
341 | static struct timeriomem_rng_data ts78xx_ts_rng_data = { | 335 | static struct timeriomem_rng_data ts78xx_ts_rng_data = { |
342 | .period = 1000000, /* one second */ | 336 | .period = 1000000, /* one second */ |