All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 2/3] dmaengine: shdma: use sh_dmae_writel/readl in
@ 2012-01-10  5:20 Shimoda, Yoshihiro
  0 siblings, 0 replies; only message in thread
From: Shimoda, Yoshihiro @ 2012-01-10  5:20 UTC (permalink / raw)
  To: linux-sh

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 about v2
  - No change

 drivers/dma/shdma.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c
index 4fff02b..ccc3028 100644
--- a/drivers/dma/shdma.c
+++ b/drivers/dma/shdma.c
@@ -92,14 +92,14 @@ static void chcr_write(struct sh_dmae_chan *sh_dc, u32 data)
 {
 	struct sh_dmae_device *shdev = to_sh_dev(sh_dc);

-	__raw_writel(data, sh_dc->base + shdev->chcr_offset / sizeof(u32));
+	sh_dmae_writel(sh_dc, data, shdev->chcr_offset);
 }

 static u32 chcr_read(struct sh_dmae_chan *sh_dc)
 {
 	struct sh_dmae_device *shdev = to_sh_dev(sh_dc);

-	return __raw_readl(sh_dc->base + shdev->chcr_offset / sizeof(u32));
+	return sh_dmae_readl(sh_dc, shdev->chcr_offset);
 }

 /*
-- 
1.7.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-10  5:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10  5:20 [PATCH v2 2/3] dmaengine: shdma: use sh_dmae_writel/readl in Shimoda, Yoshihiro

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.