From: Grant Likely Date: Wed, 5 Oct 2011 17:29:49 +0000 (-0600) Subject: drivercore: Add helper macro for platform_driver boilerplate X-Git-Tag: v3.2-rc1~123^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=940ab88962bc1aff3273a8356d64577a6e386736;p=pandora-kernel.git drivercore: Add helper macro for platform_driver boilerplate 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 Acked-by: Greg Kroah-Hartman Reviewed-by: Magnus Damm Reviewed-by: Mark Brown Reviewed-by: Stephen Boyd --- Reading git-diff-tree failed