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/epat.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/epat.c')
-rw-r--r-- | drivers/ata/pata_parport/epat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_parport/epat.c b/drivers/ata/pata_parport/epat.c index 93ee91d9338b..7583d07083a8 100644 --- a/drivers/ata/pata_parport/epat.c +++ b/drivers/ata/pata_parport/epat.c @@ -327,12 +327,12 @@ static int __init epat_init(void) #ifdef CONFIG_PATA_PARPORT_EPATC8 epatc8 = 1; #endif - return paride_register(&epat); + return pata_parport_register_driver(&epat); } static void __exit epat_exit(void) { - paride_unregister(&epat); + pata_parport_unregister_driver(&epat); } MODULE_LICENSE("GPL"); |