From mboxrd@z Thu Jan 1 00:00:00 1970 From: manjunath.hadli@ti.com (Manjunath Hadli) Date: Thu, 15 Dec 2011 17:41:56 +0530 Subject: [PATCH v6 07/11] davinci: dm644x: Replace register base value with a defined macro In-Reply-To: <1323951120-15876-1-git-send-email-manjunath.hadli@ti.com> References: <1323951120-15876-1-git-send-email-manjunath.hadli@ti.com> Message-ID: <1323951120-15876-8-git-send-email-manjunath.hadli@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Replace hard coded value of vpss register base to a define macro DM644X_VPSS_BASE for proper readability Signed-off-by: Manjunath Hadli Acked-by: Sekhar Nori --- 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 6b1d473..39d1332 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