* [PATCH v1 1/1] scsi: ppa: Switch to use module_parport_driver()
@ 2021-06-16 14:25 Andy Shevchenko
2021-06-19 2:21 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2021-06-16 14:25 UTC (permalink / raw)
To: Gustavo A. R. Silva, linux-scsi, linux-kernel
Cc: James E.J. Bottomley, Martin K. Petersen, Andy Shevchenko
Switch to use module_parport_driver() to reduce boilerplate code.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/scsi/ppa.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c
index aa41f7ac91cb..977315fdc254 100644
--- a/drivers/scsi/ppa.c
+++ b/drivers/scsi/ppa.c
@@ -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");
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] scsi: ppa: Switch to use module_parport_driver()
2021-06-16 14:25 [PATCH v1 1/1] scsi: ppa: Switch to use module_parport_driver() Andy Shevchenko
@ 2021-06-19 2:21 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2021-06-19 2:21 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Gustavo A. R. Silva, linux-scsi, linux-kernel,
James E.J. Bottomley, Martin K. Petersen
Andy,
> Switch to use module_parport_driver() to reduce boilerplate code.
Applied to 5.14/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-19 2:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 14:25 [PATCH v1 1/1] scsi: ppa: Switch to use module_parport_driver() Andy Shevchenko
2021-06-19 2:21 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).