All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dspbridge: minor clean up in memdefs.h
@ 2010-01-27 12:39 andy.shevchenko
  2010-01-29  0:33 ` Omar Ramirez Luna
  0 siblings, 1 reply; 2+ messages in thread
From: andy.shevchenko @ 2010-01-27 12:39 UTC (permalink / raw)
  To: linux-omap; +Cc: Andy Shevchenko

From: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>

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

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
---
 arch/arm/plat-omap/include/dspbridge/memdefs.h |    3 ---
 drivers/dsp/bridge/wmd/tiomap_io.c             |    5 ++---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/arch/arm/plat-omap/include/dspbridge/memdefs.h b/arch/arm/plat-omap/include/dspbridge/memdefs.h
index e70225e..2e44f5c 100644
--- a/arch/arm/plat-omap/include/dspbridge/memdefs.h
+++ b/arch/arm/plat-omap/include/dspbridge/memdefs.h
@@ -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_ */
diff --git a/drivers/dsp/bridge/wmd/tiomap_io.c b/drivers/dsp/bridge/wmd/tiomap_io.c
index f60b8db..4e85efd 100644
--- a/drivers/dsp/bridge/wmd/tiomap_io.c
+++ b/drivers/dsp/bridge/wmd/tiomap_io.c
@@ -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.  */
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dspbridge: minor clean up in memdefs.h
  2010-01-27 12:39 [PATCH] dspbridge: minor clean up in memdefs.h andy.shevchenko
@ 2010-01-29  0:33 ` Omar Ramirez Luna
  0 siblings, 0 replies; 2+ messages in thread
From: Omar Ramirez Luna @ 2010-01-29  0:33 UTC (permalink / raw)
  To: andy.shevchenko; +Cc: linux-omap, Andy Shevchenko

On 1/27/2010 6:39 AM, andy.shevchenko@gmail.com wrote:
> From: Andy Shevchenko<ext-andriy.shevchenko@nokia.com>
>
> Remove useless macroses. They were doing nothing, so it's clear to just get rid
> of them.
>
> Signed-off-by: Andy Shevchenko<ext-andriy.shevchenko@nokia.com>
> ---
>   arch/arm/plat-omap/include/dspbridge/memdefs.h |    3 ---
>   drivers/dsp/bridge/wmd/tiomap_io.c             |    5 ++---
>   2 files changed, 2 insertions(+), 6 deletions(-)
>

Acked-by: Omar Ramirez Luna <omar.ramirez@ti.com>

Pushed to dspbridge.

- omar

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-29  0:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-27 12:39 [PATCH] dspbridge: minor clean up in memdefs.h andy.shevchenko
2010-01-29  0:33 ` Omar Ramirez Luna

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.