Driver core: reduce duplicated code for platform_device creation
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 Jun 2010 14:11:44 +0000 (16:11 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Aug 2010 20:53:34 +0000 (13:53 -0700)
commit44f28bdea09415d40b4d73a7668db5961362ec53
tree7f36eedff7cdfba9d9d0b77f9a4227d3bb0b190f
parent3e61dfd8509a52d165726831c57b4c8a015d626c
Driver core: reduce duplicated code for platform_device creation

This makes the two similar functions platform_device_register_simple
and platform_device_register_data one line inline functions using a new
generic function platform_device_register_resndata.

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