Re: [PATCH] net: ec_bhf: Use module_pci_driver

2015-07-08 Thread David Miller
From: Vaishali Thakkar Date: Tue, 7 Jul 2015 12:32:54 +0530 > 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: ... > Signed-o

[PATCH] net: ec_bhf: Use module_pci_driver

2015-07-07 Thread Vaishali Thakkar
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