]> git.baikalelectronics.ru Git - kernel.git/commit
dma: mv_xor: do not use pool_size from platform_data within the driver
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 29 Oct 2012 15:27:34 +0000 (16:27 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 Nov 2012 14:58:55 +0000 (15:58 +0100)
commit8ac4b82aedddcef06ea40b35fc37c3d08adae2a3
treeb5de00eb1692b4a497a07d36c2fa7d5dc8614542
parent82820c0c250167bd32b78fa140bf060cde7d77f0
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>
drivers/dma/mv_xor.c
drivers/dma/mv_xor.h