diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-01-13 12:08:14 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-02-05 01:39:44 -0500 |
commit | d8ded50f8b26a224df48f9f93e49440c6a39b77f (patch) | |
tree | 7c7620107180b0a2c3ea77770ef8fb9bccfa8341 /arch/avr32 | |
parent | cfd8fef322305bbe9955817464f0d2054ce545c0 (diff) |
dmaengine: dw: define DW_DMA_MAX_NR_MASTERS
Instead of using magic number in the code the patch provides
DW_DMA_MAX_NR_MASTERS constant.
While here, restrict the reading of data width array by amount of the actual
number of AHB masters.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'arch/avr32')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index cc92cdb9994c..1d8b147282cf 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
@@ -607,7 +607,7 @@ static struct dw_dma_platform_data dw_dmac0_data = { | |||
607 | .nr_channels = 3, | 607 | .nr_channels = 3, |
608 | .block_size = 4095U, | 608 | .block_size = 4095U, |
609 | .nr_masters = 2, | 609 | .nr_masters = 2, |
610 | .data_width = { 2, 2, 0, 0 }, | 610 | .data_width = { 2, 2 }, |
611 | }; | 611 | }; |
612 | 612 | ||
613 | static struct resource dw_dmac0_resource[] = { | 613 | static struct resource dw_dmac0_resource[] = { |