Commit 0e025183 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Martin K. Petersen

scsi: imm: Switch to use module_parport_driver()

Switch to use module_parport_driver() to reduce boilerplate code.

Link: https://lore.kernel.org/r/20210616142429.45373-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d6c2ce43
...@@ -1283,19 +1283,6 @@ static struct parport_driver imm_driver = { ...@@ -1283,19 +1283,6 @@ static struct parport_driver imm_driver = {
.detach = imm_detach, .detach = imm_detach,
.devmodel = true, .devmodel = true,
}; };
module_parport_driver(imm_driver);
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_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment