new helper to create platform devices with dma mask
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 25 Aug 2011 09:16:00 +0000 (11:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 26 Aug 2011 18:31:09 +0000 (11:31 -0700)
commit01dcc60a7cb8cd5193676554b94a90d349bdfd15
treeb2081df8c0f1b47fa43076522a1fb42de67f1178
parentb7565fa3a4b84460ce1765cc468700a6bfd82746
new helper to create platform devices with dma mask

compared to the most powerful and already existing helper (namely
platform_device_register_resndata) this allows to specify a dma_mask.
To make eventual extensions later more easy, a struct holding the used
information is created instead of passing the information by function
parameters.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/platform.c
include/linux/platform_device.h