From: Jingoo Han Date: Mon, 4 Mar 2013 16:43:50 +0000 (+0000) Subject: net: cs89x0: use module_platform_driver_probe() X-Git-Tag: MMI-PSA29.97-13-9~14469^2~568 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fae4f3cf49ac9d91b83c705809d71fdeb0dc9284;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- 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 = { .remove = cs89x0_platform_remove, }; -static int __init cs89x0_init(void) -{ - return platform_driver_probe(&cs89x0_driver, cs89x0_platform_probe); -} - -module_init(cs89x0_init); - -static void __exit cs89x0_cleanup(void) -{ - platform_driver_unregister(&cs89x0_driver); -} - -module_exit(cs89x0_cleanup); +module_platform_driver_probe(cs89x0_driver, cs89x0_platform_probe); #endif /* CONFIG_CS89x0_PLATFORM */