]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dw: fix regression in dw_probe() function
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 8 May 2014 09:01:49 +0000 (12:01 +0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 22 May 2014 10:07:24 +0000 (15:37 +0530)
commitce36df9f95c136a5b0ef6c52fe633ec5af16157a
tree75296fcfd7bd96e50329c4f6e6ef2433e25b6357
parent19e7be560c1c5d28b07b458e6bd40a90bc006253
dmaengine: dw: fix regression in dw_probe() function

The commit b15747f1 "dw_dmac: use devm_* functions to simplify code" turns
probe function to use devm_* helpers and simultaneously brings a regression.

We have to 1) call clk_disable_unprepare() on error path, and 2) check error
code of clk_enable_prepare(). First part was done in the original code, second
one is an update.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/core.c