All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] scsi: imm: Switch to use module_parport_driver()
@ 2021-06-16 14:24 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:24 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/imm.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c
index 862d35a098cf..943c9102a7eb 100644
--- a/drivers/scsi/imm.c
+++ b/drivers/scsi/imm.c
@@ -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");
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1 1/1] scsi: imm: Switch to use module_parport_driver()
  2021-06-16 14:24 [PATCH v1 1/1] scsi: imm: 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:24 [PATCH v1 1/1] scsi: imm: Switch to use module_parport_driver() Andy Shevchenko
2021-06-19  2:21 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.