29 Jun 2012 14:01
[PATCH] ARM: pxa: hx4700: Use DEFINE_RES_* macros consistently
Paul Parsons <lost.distance <at> yahoo.com>
2012-06-29 12:01:31 GMT
2012-06-29 12:01:31 GMT
This patch replaces the remaining inline struct resource definitions
with equivalent DEFINE_RES_* macro calls.
The source file is reduced in size; the object file is unchanged.
Signed-off-by: Paul Parsons <lost.distance <at> yahoo.com>
Cc: Philipp Zabel <philipp.zabel <at> gmail.com>
---
arch/arm/mach-pxa/hx4700.c | 56 +++++++++----------------------------------
1 files changed, 12 insertions(+), 44 deletions(-)
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c
index d3de84b..e631198 100644
--- a/arch/arm/mach-pxa/hx4700.c
+++ b/arch/arm/mach-pxa/hx4700.c
<at> <at> -296,27 +296,11 <at> <at> static struct asic3_led asic3_leds[ASIC3_NUM_LEDS] = {
static struct resource asic3_resources[] = {
/* GPIO part */
- [0] = {
- .start = ASIC3_PHYS,
- .end = ASIC3_PHYS + ASIC3_MAP_SIZE_16BIT - 1,
- .flags = IORESOURCE_MEM,
- },
- [1] = {
- .start = PXA_GPIO_TO_IRQ(GPIO12_HX4700_ASIC3_IRQ),
- .end = PXA_GPIO_TO_IRQ(GPIO12_HX4700_ASIC3_IRQ),
- .flags = IORESOURCE_IRQ,
- },
+ [0] = DEFINE_RES_MEM(ASIC3_PHYS, ASIC3_MAP_SIZE_16BIT),
+ [1] = DEFINE_RES_IRQ(PXA_GPIO_TO_IRQ(GPIO12_HX4700_ASIC3_IRQ)),
(Continue reading)
RSS Feed