Tag: d12f569c9b57ecdb18631d0b54c5224da5a1c233

uio: uio_fsl_elbc_gpcm: 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