Tag: 8668984f8129d5ac7a90c6c0348e8ed4207fc145

Staging: most: Use module_platform_driver

Author: Shraddha Barke <shraddha.6596@gmail.com> Use module_platform_driver for drivers whose init and exit functions only register and unregister, respectively. Thus remove some boilerplate code. A simplified version of Coccinelle patch – @a@ identifier f, x; @@ -static f(…) { return platform_driver_register(&x); } @b depends on a@ identifier e, a.x; @@ -static e(…) { platform_driver_unregister(&x); } @c …

Continue reading