Skip to contentSkip to conversation

dspbridge: minor clean up in memdefs.h

PATCH Applied [email protected] 2 participants 2 messages Jan 27, 2010 – Jan 29, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dspbridge: minor clean up in memdefs.h

From: Andy Shevchenko <[email protected]>

Remove useless macroses. They were doing nothing, so it's clear to just get rid of them.

---
 arch/arm/plat-omap/include/dspbridge/memdefs.h |    3 ---
 drivers/dsp/bridge/wmd/tiomap_io.c             |    5 ++---
 2 files changed, 2 insertions(+), 6 deletions(-)
arch/arm/plat-omap/include/dspbridge/memdefs.h +0 -3
index e70225e..2e44f5c 100644
@@ -34,7 +34,4 @@
 #define MEM_GETVIRTUALSEGID     0x20000000
 #define MEM_MASKVIRTUALSEGID    (MEM_SETVIRTUALSEGID | MEM_GETVIRTUALSEGID)
 
-#define TO_VIRTUAL_UNCACHED(x) x
-#define INTREG_TO_VIRTUAL_UNCACHED(x) x
-
 #endif				/* MEMDEFS_ */
drivers/dsp/bridge/wmd/tiomap_io.c +2 -3
index f60b8db..4e85efd 100644
@@ -366,9 +366,8 @@ DSP_STATUS WriteExtDspData(struct WMD_DEV_CONTEXT *pDevContext,
 				 dwExtProgVirtMem);
 
 			pDevContext->dwDspExtBaseAddr =
-				(u32)MEM_LinearAddress((void *)
-				TO_VIRTUAL_UNCACHED(dwExtProgVirtMem), ulExtEnd
-				- ulExtBase);
+				(u32)MEM_LinearAddress((void *)dwExtProgVirtMem,
+					ulExtEnd - ulExtBase);
 			dwBaseAddr += pDevContext->dwDspExtBaseAddr;
 			/* This dwDspExtBaseAddr will get cleared only when
 			 * the board is stopped.  */
Signature · 1 line
1.5.6.5
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 11 lines · On 1/27/2010 6:39 AM, [email protected] wrote:

From: Andy Shevchenko<[email protected]>

Remove useless macroses. They were doing nothing, so it's clear to just get rid of them.

---
  arch/arm/plat-omap/include/dspbridge/memdefs.h |    3 ---
  drivers/dsp/bridge/wmd/tiomap_io.c             |    5 ++---
  2 files changed, 2 insertions(+), 6 deletions(-)

Pushed to dspbridge.

- omar