dw_dmac: use devm_* functions to simplify code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Jul 2012 08:00:55 +0000 (11:00 +0300)
committerVinod Koul <vinod.koul@linux.intel.com>
Thu, 26 Jul 2012 06:10:07 +0000 (11:40 +0530)
commitdbde5c2934d10f87cc45ed9a9b95cac6f0c0fdd2
treef1b911eb964f8a80dce0c4eb27af695295708689
parent634332502366554849fe37e88d05ec0a13e550c8
dw_dmac: use devm_* functions to simplify code

Use devm_kzalloc, devm_clk_get, devm_request_irq, and devm_request_and_ioremap
to reduce the code and to simplify the error path.

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