From: Eli Billauer Date: Sat, 21 Jun 2014 11:07:12 +0000 (+0300) Subject: staging: xillybus: Use devm_ API for memory allocation and DMA mapping X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1494 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=525be905dc5db388487470be44734f6fb33a8fda;p=pandora-kernel.git staging: xillybus: Use devm_ API for memory allocation and DMA mapping Managed device resource API replaces code that reinvents it for memory allocation, page allocation and DMA mapping. devm_add_action() is used for unwinding DMA mappings, since there is no devm_* API for dma_map_single(). A recent patch that introduces such API was rejected, mainly on the grounds that it may cause an unnecessary waste of resources. Suggested-by: Baruch Siach Signed-off-by: Eli Billauer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed