drivercore: Add helper macro for platform_driver boilerplate
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 5 Oct 2011 17:29:49 +0000 (11:29 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 24 Oct 2011 22:35:47 +0000 (00:35 +0200)
For simple modules that contain a single platform_driver without any
additional setup code then ends up being a block of duplicated
boilerplate.  This patch adds a new macro, module_platform_driver(),
which replaces the module_init()/module_exit() registrations with
template functions.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Reviewed-by: Magnus Damm <magnus.damm@gmail.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>

No differences found