dw_dmac: apply default dma_mask if needed
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 14 Feb 2013 08:41:09 +0000 (10:41 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 14 Feb 2013 09:44:36 +0000 (15:14 +0530)
commit877e86f28385407f05c5aa4e397d4ccb3233f01a
tree5467a9c9360f49b6ff1d2d0a0f8e8347767904f6
parenta20702b8d7c2b54a618e203d94b37b4f1d21bbd4
dw_dmac: apply default dma_mask if needed

In some cases we got the device without dma_mask configured. We have to apply
the default value to avoid crashes during memory mapping.

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