dmaengine: omap-dma: use devm_kzalloc() to allocate omap_dmadev.
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Nov 2013 12:58:29 +0000 (12:58 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Apr 2014 23:27:09 +0000 (00:27 +0100)
commit104fce73fdbd174eb08a493eeb2920fd59e6d3f4
tree756279a6a316021201c6e1dc4db56d0086fb5165
parentb28a960c42fcd9cfc987441fa6d1c1a471f0f9ed
dmaengine: omap-dma: use devm_kzalloc() to allocate omap_dmadev.

Use devm_kzalloc() to allocate omap_dmadev() so that we don't need
complex error cleanup paths.

Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/omap-dma.c