diff options
| author | Fabio Porcedda <[email protected]> | 2013-01-09 12:15:26 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-01-17 17:39:33 -0800 |
| commit | bab734fcdf2c690371e6749ce484b17653b3cb0e (patch) | |
| tree | 752e2e5191d657a7cebb25cbeb7b313792ced093 /tools/perf/scripts | |
| parent | 53a9c87e7e02abf3575be98c9fb2018fa30a61b9 (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions