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>
这个提交包含在:
Thomas Petazzoni
2012-10-29 16:27:34 +01:00
父节点 a3fc74bc9b
当前提交 09f2b7864c
修改 2 个文件,包含 5 行新增6 行删除

查看文件

@@ -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;
};