DaVinci: FB: fix memory addressing warnings by using physical addresses

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
diff --git a/drivers/video/davincifb.c b/drivers/video/davincifb.c
index 49f86cc..9d478d1 100644
--- a/drivers/video/davincifb.c
+++ b/drivers/video/davincifb.c
@@ -51,20 +51,20 @@
 /*
  * display controller register I/O routines
  */
-static __inline__ u32 dispc_reg_in(u32 offset)
+static __inline__ u32 dispc_reg_in(u32 reg)
 {
-	return (inl(offset));
+	return davinci_readl(reg);
 }
-static __inline__ u32 dispc_reg_out(u32 offset, u32 val)
+static __inline__ u32 dispc_reg_out(u32 reg, u32 val)
 {
-	outl(val, offset);
+	davinci_writel(val, reg);
 	return (val);
 }
-static __inline__ u32 dispc_reg_merge(u32 offset, u32 val, u32 mask)
+static __inline__ u32 dispc_reg_merge(u32 reg, u32 val, u32 mask)
 {
-	u32 addr = offset;
-	u32 new_val = (inl(addr) & ~mask) | (val & mask);
-	outl(new_val, addr);
+	u32 new_val = (davinci_readl(reg) & ~mask) | (val & mask);
+
+	davinci_writel(new_val, reg);
 	return (new_val);
 }
 
diff --git a/include/video/davincifb.h b/include/video/davincifb.h
index 13fa237..96b5c20 100644
--- a/include/video/davincifb.h
+++ b/include/video/davincifb.h
@@ -16,9 +16,9 @@
 #include <mach/io.h>
 
 /* Base registers */
-#define	VPBE_REG_BASE				IO_ADDRESS(0x01c72780)
-#define	VENC_REG_BASE				IO_ADDRESS(0x01c72400)
-#define	OSD_REG_BASE				IO_ADDRESS(0x01c72600)
+#define	VPBE_REG_BASE				0x01c72780
+#define	VENC_REG_BASE				0x01c72400
+#define	OSD_REG_BASE				0x01c72600
 #define OSD_REG_SIZE				0x00000180
 
 /* VPBE Global Registers */
@@ -26,7 +26,7 @@
 #define	VPBE_PCR				(VPBE_BASE + 0x4)
 
 /* VPSS Clock Control Register */
-#define	VPSS_CLKCTL				IO_ADDRESS(0x01c40044)
+#define	VPSS_CLKCTL				0x01c40044
 
 /* VPBE Video Encoder / Digital LCD Subsystem Registers (VENC) */
 #define	VENC_VMOD				(VENC_REG_BASE + 0x00)