diff options
author | viresh kumar <viresh.kumar@st.com> | 2011-03-06 23:57:06 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-03-09 04:49:46 -0500 |
commit | 53821162fce0e69a8d9fb98ae87ce27c1b500b8e (patch) | |
tree | 2aee16c814cea1ddbd0b6e660b08bf6a718f8c65 /arch/arm/mach-spear3xx/spear300.c | |
parent | c2c07831a76ca64670df9cc315087962f6fdceac (diff) |
ARM: 6792/1: SPEAr: Replace SIZE macro's with SZ_4K macros
Resource size required mostly is 4K for all devices, whereas currently
reserved space is much beyond that. This patch replaces SIZE macro's used at
multiple places with SZ_4K.
Reviewed-by: Stanley Miao <stanley.miao@windriver.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-spear3xx/spear300.c')
-rw-r--r-- | arch/arm/mach-spear3xx/spear300.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mach-spear3xx/spear300.c b/arch/arm/mach-spear3xx/spear300.c index 23d2a1457d7e..2697e65adf86 100644 --- a/arch/arm/mach-spear3xx/spear300.c +++ b/arch/arm/mach-spear3xx/spear300.c | |||
@@ -437,7 +437,7 @@ struct amba_device gpio1_device = { | |||
437 | }, | 437 | }, |
438 | .res = { | 438 | .res = { |
439 | .start = SPEAR300_GPIO_BASE, | 439 | .start = SPEAR300_GPIO_BASE, |
440 | .end = SPEAR300_GPIO_BASE + SPEAR300_GPIO_SIZE - 1, | 440 | .end = SPEAR300_GPIO_BASE + SZ_4K - 1, |
441 | .flags = IORESOURCE_MEM, | 441 | .flags = IORESOURCE_MEM, |
442 | }, | 442 | }, |
443 | .irq = {VIRQ_GPIO1, NO_IRQ}, | 443 | .irq = {VIRQ_GPIO1, NO_IRQ}, |
@@ -452,8 +452,7 @@ void __init spear300_init(void) | |||
452 | spear3xx_init(); | 452 | spear3xx_init(); |
453 | 453 | ||
454 | /* shared irq registration */ | 454 | /* shared irq registration */ |
455 | shirq_ras1.regs.base = | 455 | shirq_ras1.regs.base = ioremap(SPEAR300_TELECOM_BASE, SZ_4K); |
456 | ioremap(SPEAR300_TELECOM_BASE, SPEAR300_TELECOM_REG_SIZE); | ||
457 | if (shirq_ras1.regs.base) { | 456 | if (shirq_ras1.regs.base) { |
458 | ret = spear_shirq_register(&shirq_ras1); | 457 | ret = spear_shirq_register(&shirq_ras1); |
459 | if (ret) | 458 | if (ret) |
@@ -461,8 +460,7 @@ void __init spear300_init(void) | |||
461 | } | 460 | } |
462 | 461 | ||
463 | /* pmx initialization */ | 462 | /* pmx initialization */ |
464 | pmx_driver.base = ioremap(SPEAR300_SOC_CONFIG_BASE, | 463 | pmx_driver.base = ioremap(SPEAR300_SOC_CONFIG_BASE, SZ_4K); |
465 | SPEAR300_SOC_CONFIG_SIZE); | ||
466 | if (pmx_driver.base) { | 464 | if (pmx_driver.base) { |
467 | ret = pmx_register(&pmx_driver); | 465 | ret = pmx_register(&pmx_driver); |
468 | if (ret) | 466 | if (ret) |