kernel_optimize_test/drivers/scsi/pcmcia
Vaishali Thakkar dc245cfa82 pcmcia: Use module_pcmcia_driver for scsi drivers
Use module_pcmcia_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 pcmcia_register_driver(&x); }

@b depends on a@
identifier e, a.x;
@@
-static e(...) { pcmcia_unregister_driver(&x); }

@c depends on a && b@
identifier a.f;
declarer name module_init;
@@
-module_init(f);

@d depends on a && b && c@
identifier b.e, a.x;
declarer name module_exit;
declarer name module_pcmcia_driver;
@@
-module_exit(e);
+module_pcmcia_driver(x);

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Cc: James E.J. Bottomley <jejb@linux.vnet.ibm.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
[linux@dominikbrodowski.net:
 - updated commit message
 - drop change to fdomain which got removed in the meantime]
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
2018-10-01 12:15:21 +02:00
..
aha152x_core.c
aha152x_stub.c pcmcia: Use module_pcmcia_driver for scsi drivers 2018-10-01 12:15:21 +02:00
Kconfig scsi: remove the fdomain and fdomain_cs drivers 2018-03-19 22:54:47 -04:00
Makefile scsi: remove the fdomain and fdomain_cs drivers 2018-03-19 22:54:47 -04:00
nsp_cs.c pcmcia: Use module_pcmcia_driver for scsi drivers 2018-10-01 12:15:21 +02:00
nsp_cs.h pcmcia: Use module_pcmcia_driver for scsi drivers 2018-10-01 12:15:21 +02:00
nsp_debug.c
nsp_io.h
nsp_message.c
qlogic_stub.c pcmcia: Use module_pcmcia_driver for scsi drivers 2018-10-01 12:15:21 +02:00
sym53c500_cs.c pcmcia: Use module_pcmcia_driver for scsi drivers 2018-10-01 12:15:21 +02:00