[PATCH] Scsi: Use module_pci_driver

2015-09-21 Thread Shraddha Barke
Use module_pci_driver for drivers whose init and exit functions only register and unregister Signed-off-by: Shraddha Barke --- drivers/scsi/initio.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi/initio.c

Re: [PATCH] scsi: Use module_pci_driver

2015-07-09 Thread Finn Thain
On Wed, 8 Jul 2015, Vaishali Thakkar wrote: 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; @@

[PATCH] scsi: 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