DMA: shdma: fix CHCLR register address calculation
commita28a94e84bca8ba7db66bcc0db1bea51840b08b2
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 2 Jul 2013 15:37:58 +0000 (2 17:37 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sun, 25 Aug 2013 06:18:22 +0000 (25 11:48 +0530)
tree1ef5bf1356baa02e8d63991b6ed0c20f798b637f
parentc095ba7224d8edc71dcef0d655911399a8bd4a3f
DMA: shdma: fix CHCLR register address calculation

struct sh_dmae_device::chan_reg is a pointer to u32, therefore when adding
offsets to it care should be taken to add offsets in sizeof(u32) units, not
in bytes. This patch corrects such a bug. While at it we also remove the
redundant parameter of the affected function.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/shdma.c