diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-02-18 23:48:26 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-02-19 00:37:55 +0100 |
commit | 287d859222e0adbc67666a6154aaf42d7d5bbb54 (patch) | |
tree | a3e00f7b42f91c0d00f9d5a8d79414939b3c566f /drivers/dma/dw_dmac_regs.h | |
parent | lis3lv02d: add axes knowledge of HP Pavilion dv5 models (diff) | |
download | linux-287d859222e0adbc67666a6154aaf42d7d5bbb54.tar.xz linux-287d859222e0adbc67666a6154aaf42d7d5bbb54.zip |
atmel-mci: fix initialization of dma slave data
The conversion of atmel-mci to dma_request_channel missed the
initialization of the channel dma_slave information. The filter_fn passed
to dma_request_channel is responsible for initializing the channel's
private data. This implementation has the additional benefit of enabling
a generic client-channel data passing mechanism.
Reviewed-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/dma/dw_dmac_regs.h')
-rw-r--r-- | drivers/dma/dw_dmac_regs.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/dw_dmac_regs.h b/drivers/dma/dw_dmac_regs.h index 00fdd187bb0c..b252b202c5cf 100644 --- a/drivers/dma/dw_dmac_regs.h +++ b/drivers/dma/dw_dmac_regs.h @@ -139,8 +139,6 @@ struct dw_dma_chan { struct list_head queue; struct list_head free_list; - struct dw_dma_slave *dws; - unsigned int descs_allocated; }; |