platform: add new device registration helper
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Mon, 22 Sep 2008 21:41:40 +0000 (14:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Oct 2008 16:24:51 +0000 (09:24 -0700)
commitd8bf254089a6c31d7d01a4d1d2f1861662900855
tree646ec36e10982958e6bd3385dbbaee34c5061251
parent45c076c5d71e6e644e2eae64f80922d162c900ac
platform: add new device registration helper

Add a helper that registers simple platform_device w/o resources but with
parent and device data.

This is usefull to cleanup platform code from code that registers such
simple devices as leds-gpio, generic-bl, etc.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/platform.c
include/linux/platform_device.h