diff options
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 24 |
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 | */ | ||
2138 | static 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 | */ | ||
2150 | static void __exit stmmac_cleanup_module(void) | ||
2151 | { | ||
2152 | platform_driver_unregister(&stmmac_driver); | ||
2153 | } | ||
2154 | |||
2155 | #ifndef MODULE | 2134 | #ifndef MODULE |
2156 | static int __init stmmac_cmdline_opt(char *str) | 2135 | static 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 | ||
2214 | module_init(stmmac_init_module); | 2193 | module_platform_driver(stmmac_driver); |
2215 | module_exit(stmmac_cleanup_module); | ||
2216 | 2194 | ||
2217 | MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet driver"); | 2195 | MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet driver"); |
2218 | MODULE_AUTHOR("Giuseppe Cavallaro <peppe.cavallaro@st.com>"); | 2196 | MODULE_AUTHOR("Giuseppe Cavallaro <peppe.cavallaro@st.com>"); |