]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: omap: dma: get rid of 'p' allocation and clean up
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 8 Nov 2013 18:21:35 +0000 (18:21 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Apr 2014 23:31:47 +0000 (00:31 +0100)
commit247f2759acc146606c094b3d408798149d146b22
treeb53e2def902af95a291603dd8a1b2d00a45b7719
parentb94e5dcd4af37f314f4d7b662560a3ae0309b1a1
ARM: omap: dma: get rid of 'p' allocation and clean up

The omap_system_dma_plat_info structure is only seven words, it's not
worth the expense of kmalloc()'ing backing store for this only to
release it later.  Note that platform_device_add_data() copies the
data anyway.  Clean up the initialisation of this structure - we don't
even need code to initialise most of this structure.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap1/dma.c
arch/arm/mach-omap2/dma.c