mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
net: cpmac: Add __init/__exit annotations to module init/exit funcs
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>
This commit is contained in:
parent
0e9804cff1
commit
510bbf82f8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue