Driver core: add platform_create_bundle() helper
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 Dec 2009 04:11:20 +0000 (20:11 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:46 +0000 (17:04 -0800)
Many legacy-style module create singleton platform devices themselves,
along with corresponding platform driver. Instead of replicating error
handling code in all such drivers, provide a helper that allocates and
registers a single platform device and a driver and binds them together.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found