Tag: 910be1abbec9cac102fde8ab6dd68a9b410ca441

neterion: s2io: 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; statement S; @@ -static …

Continue reading