Tag: b11b6ed0f97f900f5c4bba9b3abcd2d2dab73ca7

net: ec_bhf: Use module_pci_driver

Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use module_pci_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 pci_register_driver(&x); } @b depends on a@ identifier e, a.x; @@ -static e(…) { …

Continue reading