dma: tegra: fix interrupt name issue with apb dma.
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 3 Oct 2012 17:18:07 +0000 (22:48 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Thu, 4 Oct 2012 15:21:24 +0000 (20:51 +0530)
commitd0fc905429f7f5f3ad365466669c55b04b92c1e5
tree95988e62504866b8589ff450fbe8ebb61f0e7605
parent3d4f860583bf4aa55dd5c6d5ba6ccf1f25fb473a
dma: tegra: fix interrupt name issue with apb dma.

When watching the interrupts through /proc/interrupts,
the name of the interrupts are blank or garbage. The
reason is the pointer passed for devname during irq
registration is stack and so it get changed after
dma registration completes.
Allocate the pointer as part of dma channel and pass
this pointer as the devname for irq registration to
avoid change of name.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reported-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/tegra20-apb-dma.c