atmel-mci: fix initialization of dma slave data
authorDan Williams <dan.j.williams@intel.com>
Wed, 18 Feb 2009 22:48:26 +0000 (14:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 18 Feb 2009 23:37:55 +0000 (15:37 -0800)
commit287d859222e0adbc67666a6154aaf42d7d5bbb54
treea3e00f7b42f91c0d00f9d5a8d79414939b3c566f
parent9ccf3b5e8409927835c4d38cb2f380c9e4349e76
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>
drivers/dma/dmaengine.c
drivers/dma/dw_dmac.c
drivers/dma/dw_dmac_regs.h
drivers/mmc/host/atmel-mci.c
include/linux/dmaengine.h