[PATCH] scsi: Use module_platform_driver

2015-07-07 Thread Vaishali Thakkar
Use module_platform_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 platform_driver_register(x); }

[PATCH] [SCSI] use module_platform_driver()

2014-04-09 Thread Christoph Jaeger
Eliminate a bunch of boilerplate code by using module_platform_driver(). Signed-off-by: Christoph Jaeger christophjae...@linux.com --- drivers/scsi/jazz_esp.c | 13 + drivers/scsi/mac_esp.c| 13 + drivers/scsi/qlogicpti.c | 13 + drivers/scsi/sgiwd93.c