git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dmaengine: dw: define DW_DMA_MAX_NR_MASTERS
[pandora-kernel.git]
/
drivers
/
dma
/
dw
/
core.c
diff --git
a/drivers/dma/dw/core.c
b/drivers/dma/dw/core.c
index
fcb9a91
..
0469d8e
100644
(file)
--- a/
drivers/dma/dw/core.c
+++ b/
drivers/dma/dw/core.c
@@
-1562,7
+1562,8
@@
int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)
}
} else {
dw->nr_masters = pdata->nr_masters;
- memcpy(dw->data_width, pdata->data_width, 4);
+ for (i = 0; i < dw->nr_masters; i++)
+ dw->data_width[i] = pdata->data_width[i];
}
/* Calculate all channel mask before DMA setup */