diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-27 10:42:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-29 00:25:05 -0500 |
commit | 871d33725545ca2e402b4526f38f89d041ba930f (patch) | |
tree | fb52710f1208db2a85d8080c38038c58804c8487 /drivers/net/can/c_can | |
parent | 0f20f5a7de1ee48ced284e960828017cc2f5d52b (diff) |
net/can: convert drivers/net/can/* to use module_platform_driver()
This patch converts the drivers in drivers/net/can/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Bhupesh Sharma <bhupesh.sharma@st.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Paul Bolle <pebolle@tiscali.nl>
Cc: Kurt Van Dijck <kurt.van.dijck@eia.be>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/c_can')
-rw-r--r-- | drivers/net/can/c_can/c_can_platform.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/can/c_can/c_can_platform.c b/drivers/net/can/c_can/c_can_platform.c index 0b5c6f8bdd34..5e1a5ff6476e 100644 --- a/drivers/net/can/c_can/c_can_platform.c +++ b/drivers/net/can/c_can/c_can_platform.c | |||
@@ -197,17 +197,7 @@ static struct platform_driver c_can_plat_driver = { | |||
197 | .remove = __devexit_p(c_can_plat_remove), | 197 | .remove = __devexit_p(c_can_plat_remove), |
198 | }; | 198 | }; |
199 | 199 | ||
200 | static int __init c_can_plat_init(void) | 200 | module_platform_driver(c_can_plat_driver); |
201 | { | ||
202 | return platform_driver_register(&c_can_plat_driver); | ||
203 | } | ||
204 | module_init(c_can_plat_init); | ||
205 | |||
206 | static void __exit c_can_plat_exit(void) | ||
207 | { | ||
208 | platform_driver_unregister(&c_can_plat_driver); | ||
209 | } | ||
210 | module_exit(c_can_plat_exit); | ||
211 | 201 | ||
212 | MODULE_AUTHOR("Bhupesh Sharma <bhupesh.sharma@st.com>"); | 202 | MODULE_AUTHOR("Bhupesh Sharma <bhupesh.sharma@st.com>"); |
213 | MODULE_LICENSE("GPL v2"); | 203 | MODULE_LICENSE("GPL v2"); |