Skip to contentSkip to conversation

scsi: imm: Switch to use module_parport_driver()

PATCH Applied Andy Shevchenko 2 participants 2 messages Jun 16, 2021 – Jun 19, 2021 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: imm: Switch to use module_parport_driver()

Switch to use module_parport_driver() to reduce boilerplate code.

---
 drivers/scsi/imm.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)
drivers/scsi/imm.c +1 -14
index 862d35a098cf..943c9102a7eb 100644
@@ -1283,19 +1283,6 @@ static struct parport_driver imm_driver = {
 	.detach		= imm_detach,
 	.devmodel	= true,
 };
-
-static int __init imm_driver_init(void)
-{
-	printk("imm: Version %s\n", IMM_VERSION);
-	return parport_register_driver(&imm_driver);
-}
-
-static void __exit imm_driver_exit(void)
-{
-	parport_unregister_driver(&imm_driver);
-}
-
-module_init(imm_driver_init);
-module_exit(imm_driver_exit);
+module_parport_driver(imm_driver);
 
 MODULE_LICENSE("GPL");
Signature · 1 line
2.30.2
#1 lore raw

Andy,

Quoted 1 line

Switch to use module_parport_driver() to reduce boilerplate code.

Applied to 5.14/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering