net: cpmac: Add __init/__exit annotations to module init/exit funcs
authorruanjinjie <ruanjinjie@huawei.com>
Wed, 28 Sep 2022 03:17:08 +0000 (11:17 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 Sep 2022 11:39:58 +0000 (13:39 +0200)
Add __init/__exit annotations to module init/exit funcs

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220928031708.89120-1-ruanjinjie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/ti/cpmac.c

index a16be21..80eeeb4 100644 (file)
@@ -1169,7 +1169,7 @@ static struct platform_driver cpmac_driver = {
        .remove = cpmac_remove,
 };
 
-int cpmac_init(void)
+int __init cpmac_init(void)
 {
        u32 mask;
        int i, res;
@@ -1239,7 +1239,7 @@ fail_alloc:
        return res;
 }
 
-void cpmac_exit(void)
+void __exit cpmac_exit(void)
 {
        platform_driver_unregister(&cpmac_driver);
        mdiobus_unregister(cpmac_mii);