]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: pxa3xx: Move buffer release code to its own function
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 17 Apr 2013 16:38:14 +0000 (13:38 -0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 19:48:13 +0000 (20:48 +0100)
commitc05cc4e14715741e9c5204b0b2c6898bc52e7013
tree70b9364f3ac8827ceb33b4c633df304fe5c6421a
parent6f0c500a5036c998a969f5d6ab36e206cfdc3d8e
mtd: nand: pxa3xx: Move buffer release code to its own function

Create a function to release the buffer and the dma channel, thus undoing
what pxa3xx_nand_init_buff() did. This commit makes the code more readable
and will allow to handle non-DMA capable platforms easier.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/pxa3xx_nand.c