dma: mv_xor: Add a device_control function
authorAndrew Lunn <andrew@lunn.ch>
Sun, 18 Nov 2012 10:44:56 +0000 (11:44 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 Nov 2012 14:59:01 +0000 (15:59 +0100)
commit34c93c8657935d30649e777c4aa05f74f16aa418
tree8a5fbb6cf15677350fd8dd83689ba8c4545f6598
parentcd09fea446f485f1514ad444cb06a35e1dd63326
dma: mv_xor: Add a device_control function

The dmatest module for DMA engines calls

device_control(dtc->chan, DMA_TERMINATE_ALL, 0);

after completing the tests. The documentation in
include/linux/dmaengine.h suggests this function is optional and
dma_async_device_register() also does not BUG_ON() when not passed a
function. However, dmatest is not the only code in the kernel
unconditionally calling device_control. So add an implementation
indicating all operations are not implemented.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
drivers/dma/mv_xor.c