Skip to contentSkip to conversation

scsi: ppa: 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: ppa: Switch to use module_parport_driver()

Switch to use module_parport_driver() to reduce boilerplate code.

---
 drivers/scsi/ppa.c | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
drivers/scsi/ppa.c +1 -13
index aa41f7ac91cb..977315fdc254 100644
@@ -1148,18 +1148,6 @@ static struct parport_driver ppa_driver = {
 	.detach		= ppa_detach,
 	.devmodel	= true,
 };
+module_parport_driver(ppa_driver);
 
-static int __init ppa_driver_init(void)
-{
-	printk(KERN_INFO "ppa: Version %s\n", PPA_VERSION);
-	return parport_register_driver(&ppa_driver);
-}
-
-static void __exit ppa_driver_exit(void)
-{
-	parport_unregister_driver(&ppa_driver);
-}
-
-module_init(ppa_driver_init);
-module_exit(ppa_driver_exit);
 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