]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
pch_dma: Reduce wasting memory
authorTomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>
Wed, 12 Oct 2011 00:38:35 +0000 (09:38 +0900)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 12 Oct 2011 05:21:24 +0000 (10:51 +0530)
commit01631243d712d41681d61c0556341a3329860c47
treefcaa0e40b761b5cdd0dee64c658c6c69fa53ebc6
parentc43f1508686e8e4746012bf87995085eeb0f5307
pch_dma: Reduce wasting memory

nr_channels is defined in "struct pch_dma".
and struct pch_dma_chan is defined in "struct pch_dma".
So, "sizeof(struct pch_dma_chan) * nr_channels" is unnecessary.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/pch_dma.c