[PATCH v7 4/8] davinci: dm644x: Replace register base value with a defined macro
Manjunath Hadli
manjunath.hadli at ti.com
Wed Dec 21 08:43:37 EST 2011
Replace hard coded value of vpss register base to a define macro
DM644X_VPSS_BASE for proper readability
Signed-off-by: Manjunath Hadli <manjunath.hadli at ti.com>
Acked-by: Sekhar Nori <nsekhar at ti.com>
---
arch/arm/mach-davinci/dm644x.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c
index 6b95b4b..97aecf2 100644
--- a/arch/arm/mach-davinci/dm644x.c
+++ b/arch/arm/mach-davinci/dm644x.c
@@ -594,13 +594,15 @@ static struct platform_device dm644x_asp_device = {
.resource = dm644x_asp_resources,
};
+#define DM644X_VPSS_BASE 0x01c73400
+
static struct resource dm644x_vpss_resources[] = {
{
/* VPSS Base address */
.name = "vpss",
- .start = 0x01c73400,
- .end = 0x01c73400 + 0xff,
- .flags = IORESOURCE_MEM,
+ .start = DM644X_VPSS_BASE,
+ .end = DM644X_VPSS_BASE + 0xff,
+ .flags = IORESOURCE_MEM,
},
};
--
1.6.2.4
More information about the linux-arm-kernel
mailing list