Commit 510bbf82 authored by ruanjinjie's avatar ruanjinjie Committed by Paolo Abeni

net: cpmac: Add __init/__exit annotations to module init/exit funcs

Add __init/__exit annotations to module init/exit funcs
Signed-off-by: default avatarruanjinjie <ruanjinjie@huawei.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220928031708.89120-1-ruanjinjie@huawei.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 0e9804cf
...@@ -1169,7 +1169,7 @@ static struct platform_driver cpmac_driver = { ...@@ -1169,7 +1169,7 @@ static struct platform_driver cpmac_driver = {
.remove = cpmac_remove, .remove = cpmac_remove,
}; };
int cpmac_init(void) int __init cpmac_init(void)
{ {
u32 mask; u32 mask;
int i, res; int i, res;
...@@ -1239,7 +1239,7 @@ int cpmac_init(void) ...@@ -1239,7 +1239,7 @@ int cpmac_init(void)
return res; return res;
} }
void cpmac_exit(void) void __exit cpmac_exit(void)
{ {
platform_driver_unregister(&cpmac_driver); platform_driver_unregister(&cpmac_driver);
mdiobus_unregister(cpmac_mii); mdiobus_unregister(cpmac_mii);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment