summaryrefslogtreecommitdiffstats
path: root/drivers/dma/mv_xor.h
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-10-29 16:27:34 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-20 15:58:55 +0100
commit09f2b7864ce37483f4c4ecb30b0eed599f475035 (patch)
treeb5de00eb1692b4a497a07d36c2fa7d5dc8614542 /drivers/dma/mv_xor.h
parenta3fc74bc9bd8ffd1f2352a2053e906d1efad870d (diff)
downloadlinux-0-day-09f2b7864ce37483f4c4ecb30b0eed599f475035.tar.gz
linux-0-day-09f2b7864ce37483f4c4ecb30b0eed599f475035.tar.xz
dma: mv_xor: do not use pool_size from platform_data within the driver
The driver currently pokes into the platform_data structure during its normal operation to get the pool_size value. Poking into the platform_data structure is not nice when moving to the Device Tree, so this commit adds a new pool_size field in the mv_xor_device structure, which gets initialized at ->probe() time. The driver then uses this field instead of the platform_data. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/dma/mv_xor.h')
-rw-r--r--drivers/dma/mv_xor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/mv_xor.h b/drivers/dma/mv_xor.h
index a5b422f5a8abf..a0641aebbdef3 100644
--- a/drivers/dma/mv_xor.h
+++ b/drivers/dma/mv_xor.h
@@ -72,6 +72,7 @@ struct mv_xor_device {
int id;
dma_addr_t dma_desc_pool;
void *dma_desc_pool_virt;
+ size_t pool_size;
struct dma_device common;
struct mv_xor_shared_private *shared;
};