projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e9804c
)
net: cpmac: Add __init/__exit annotations to module init/exit funcs
author
ruanjinjie
<ruanjinjie@huawei.com>
Wed, 28 Sep 2022 03:17:08 +0000
(11:17 +0800)
committer
Paolo 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/cpmac.c
b/drivers/net/ethernet/ti/cpmac.c
index
a16be21
..
80eeeb4
100644
(file)
--- a/
drivers/net/ethernet/ti/cpmac.c
+++ b/
drivers/net/ethernet/ti/cpmac.c
@@
-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);