From: Fabio Porcedda Date: Wed, 9 Jan 2013 11:15:26 +0000 (+0100) Subject: driver core: add helper macro for platform_driver_probe() boilerplate X-Git-Tag: v3.9-rc1~128^2~123 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bab734fcdf2c690371e6749ce484b17653b3cb0e;p=pandora-kernel.git driver core: add helper macro for platform_driver_probe() 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_probe(), which replaces the module_init()/module_exit() registrations with template functions. This macro use the same idea of module_platform_driver(). This macro is useful to stop the misuse of module_platform_driver() for removing the platform_driver_probe() boilerplate. Signed-off-by: Fabio Porcedda Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed