aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cirrus
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-04 11:43:50 -0500
committerDavid S. Miller <davem@davemloft.net>2013-03-05 23:39:13 -0500
commitfae4f3cf49ac9d91b83c705809d71fdeb0dc9284 (patch)
tree580f46fda1b70c27a0714e21352dc4acc2e23214 /drivers/net/ethernet/cirrus
parentb543a8d813e979821d97a58b1509df4fdfcfa637 (diff)
net: cs89x0: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cirrus')
-rw-r--r--drivers/net/ethernet/cirrus/cs89x0.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/ethernet/cirrus/cs89x0.c b/drivers/net/ethernet/cirrus/cs89x0.c
index 138446957786..73c1c8c33dd1 100644
--- a/drivers/net/ethernet/cirrus/cs89x0.c
+++ b/drivers/net/ethernet/cirrus/cs89x0.c
@@ -1978,18 +1978,6 @@ static struct platform_driver cs89x0_driver = {
1978 .remove = cs89x0_platform_remove, 1978 .remove = cs89x0_platform_remove,
1979}; 1979};
1980 1980
1981static int __init cs89x0_init(void) 1981module_platform_driver_probe(cs89x0_driver, cs89x0_platform_probe);
1982{
1983 return platform_driver_probe(&cs89x0_driver, cs89x0_platform_probe);
1984}
1985
1986module_init(cs89x0_init);
1987
1988static void __exit cs89x0_cleanup(void)
1989{
1990 platform_driver_unregister(&cs89x0_driver);
1991}
1992
1993module_exit(cs89x0_cleanup);
1994 1982
1995#endif /* CONFIG_CS89x0_PLATFORM */ 1983#endif /* CONFIG_CS89x0_PLATFORM */