dmaengine: dw: platform: check nr_masters to be non-zero
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 27 Apr 2016 11:15:37 +0000 (14:15 +0300)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 May 2016 10:00:25 +0000 (15:30 +0530)
commit969f750fc63d3fd2f26eceedcdeca5878b785b2e
tree04eb31a9002a6db7463fb5937874cbfab909af70
parentab703f818ac36b9e74f61b8890f14e5446b7c012
dmaengine: dw: platform: check nr_masters to be non-zero

The value of nr_masters equal to 0 is invalid since this DMA controller has to
have at least one master.

Check this before we proceed with the rest of properties.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/platform.c
This page took 0.030813 seconds and 5 git commands to generate.