diff options
author | Ondrej Zary <linux@zary.sk> | 2023-02-19 01:01:25 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2023-03-23 04:29:25 +0300 |
commit | 2c08ec0f06a6ac71b78e26f82a88093094d70dc4 (patch) | |
tree | c3139e1167227096c664be685ea0116186b255cc /drivers/ata/pata_parport/frpw.c | |
parent | cfe1e6323265413d8ea4f08505fc307ec8eaa1fc (diff) | |
download | linux-2c08ec0f06a6ac71b78e26f82a88093094d70dc4.tar.xz |
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/frpw.c')
-rw-r--r-- | drivers/ata/pata_parport/frpw.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/pata_parport/frpw.c b/drivers/ata/pata_parport/frpw.c index 7bc8fa16d5d8..8c8681812bed 100644 --- a/drivers/ata/pata_parport/frpw.c +++ b/drivers/ata/pata_parport/frpw.c @@ -298,16 +298,5 @@ static struct pi_protocol frpw = { .log_adapter = frpw_log_adapter, }; -static int __init frpw_init(void) -{ - return paride_register(&frpw); -} - -static void __exit frpw_exit(void) -{ - paride_unregister(&frpw); -} - MODULE_LICENSE("GPL"); -module_init(frpw_init) -module_exit(frpw_exit) +module_pata_parport_driver(frpw); |