dw_dmac: disable dma in optimal way in probe
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Jun 2012 10:34:06 +0000 (13:34 +0300)
committerVinod Koul <vinod.koul@linux.intel.com>
Thu, 21 Jun 2012 02:35:36 +0000 (08:05 +0530)
commit11f932ec221ee07c3a9d49e83df7d44b13f8885f
tree50ecf0a3a546dc6f7f7ca8d9f69553230cb9f9e1
parent2e4c364e151ba9085c77836733af36d3bd0e8ffd
dw_dmac: disable dma in optimal way in probe

The dw_dma_off call needs to have the all_chan_mask calculated. So, done this
calculations before the call. Moreover, remove duplicate code that masks the
DMA interrupts.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.linux@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dw_dmac.c