diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-06-16 16:24:29 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-19 05:01:03 +0200 |
commit | 0e025183f177944a541bd5feb29f0c4e232b2618 (patch) | |
tree | 594a2005f36f15ef4eac0b1aa88cbddbf69b7b2d /drivers/scsi/imm.c | |
parent | scsi: mpt3sas: Fix error return value in _scsih_expander_add() (diff) | |
download | linux-0e025183f177944a541bd5feb29f0c4e232b2618.tar.xz linux-0e025183f177944a541bd5feb29f0c4e232b2618.zip |
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.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/imm.c')
-rw-r--r-- | drivers/scsi/imm.c | 15 |
1 files changed, 1 insertions, 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"); |