spi: tegra: use functions to avoid duplicated code
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 30 May 2012 11:01:16 +0000 (16:01 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 30 May 2012 11:53:58 +0000 (16:53 +0530)
commitb9284fc6366f5b3e4c9b189129ff85711cd1fd28
tree7311b130672131551894dd5889517c015bdb4b6f
parent73a04cea8f68e29a7e83c94e15f28988ae9fa7bc
spi: tegra: use functions to avoid duplicated code

The dma allocation method for receive and transmit is
same and so instead of duplicating the same code for
rx and tx, making the function to have common code and
using the function for dma allocation.
This reduces duplicated code.

Change-Id: Ibe15eec896bc581bda8c68572eb1425c3bf6a7b2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/104465
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Conflicts:

drivers/spi/spi-tegra.c
drivers/spi/spi-tegra.c