aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 20e8267e8e40..24c2bf697118 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -2131,27 +2131,6 @@ static struct platform_driver stmmac_driver = {
2131 }, 2131 },
2132}; 2132};
2133 2133
2134/**
2135 * stmmac_init_module - Entry point for the driver
2136 * Description: This function is the entry point for the driver.
2137 */
2138static int __init stmmac_init_module(void)
2139{
2140 int ret;
2141
2142 ret = platform_driver_register(&stmmac_driver);
2143 return ret;
2144}
2145
2146/**
2147 * stmmac_cleanup_module - Cleanup routine for the driver
2148 * Description: This function is the cleanup routine for the driver.
2149 */
2150static void __exit stmmac_cleanup_module(void)
2151{
2152 platform_driver_unregister(&stmmac_driver);
2153}
2154
2155#ifndef MODULE 2134#ifndef MODULE
2156static int __init stmmac_cmdline_opt(char *str) 2135static int __init stmmac_cmdline_opt(char *str)
2157{ 2136{
@@ -2211,8 +2190,7 @@ err:
2211__setup("stmmaceth=", stmmac_cmdline_opt); 2190__setup("stmmaceth=", stmmac_cmdline_opt);
2212#endif 2191#endif
2213 2192
2214module_init(stmmac_init_module); 2193module_platform_driver(stmmac_driver);
2215module_exit(stmmac_cleanup_module);
2216 2194
2217MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet driver"); 2195MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet driver");
2218MODULE_AUTHOR("Giuseppe Cavallaro <peppe.cavallaro@st.com>"); 2196MODULE_AUTHOR("Giuseppe Cavallaro <peppe.cavallaro@st.com>");