Tag: 9754c8ef1f54bff1e1448a1a02039681a4a98fa0

ARM: pxa: Use module_platform_driver

Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use module_platform_driver for drivers whose init and exit functions only register and unregister, respectively. A simplified version of the Coccinelle semantic patch that performs this transformation is as follows: @a@ identifier f, x; @@ -static f(…) { return platform_driver_register(&x); } @b depends on a@ identifier e, a.x; @@ -static e(…) { …

Continue reading