diff options
author | Ondrej Zary <linux@zary.sk> | 2023-02-18 23:01:25 +0100 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2023-03-23 10:29:25 +0900 |
commit | 2c08ec0f06a6ac71b78e26f82a88093094d70dc4 (patch) | |
tree | c3139e1167227096c664be685ea0116186b255cc /drivers/ata/pata_parport/dstr.c | |
parent | cfe1e6323265413d8ea4f08505fc307ec8eaa1fc (diff) |
ata: pata_parport: Introduce module_pata_parport_driver macro
Introduce module_pata_parport_driver macro and use it in protocol
drivers to reduce boilerplate code. Remove paride_(un)register
compatibility defines.
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Ondrej Zary <linux@zary.sk>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/pata_parport/dstr.c')
-rw-r--r-- | drivers/ata/pata_parport/dstr.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/pata_parport/dstr.c b/drivers/ata/pata_parport/dstr.c index edf414d186a6..e733a2512e17 100644 --- a/drivers/ata/pata_parport/dstr.c +++ b/drivers/ata/pata_parport/dstr.c @@ -218,16 +218,5 @@ static struct pi_protocol dstr = { .log_adapter = dstr_log_adapter, }; -static int __init dstr_init(void) -{ - return paride_register(&dstr); -} - -static void __exit dstr_exit(void) -{ - paride_unregister(&dstr); -} - MODULE_LICENSE("GPL"); -module_init(dstr_init) -module_exit(dstr_exit) +module_pata_parport_driver(dstr); |