From: Sachin Kamat Date: Thu, 10 Oct 2013 04:00:04 +0000 (+0530) Subject: staging: xillybus: Use module_platform_driver X-Git-Tag: MMI-PSA29.97-13-9~13364^2~384 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a620a650b975cefd1b10b2ed7144b6c480fff12;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: xillybus: Use module_platform_driver module_platform_driver simplifies the code by removing the boilerplate. Signed-off-by: Sachin Kamat Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xillybus/xillybus_of.c b/drivers/staging/xillybus/xillybus_of.c index 92c2931f4348..2ae045e332d4 100644 --- a/drivers/staging/xillybus/xillybus_of.c +++ b/drivers/staging/xillybus/xillybus_of.c @@ -198,15 +198,4 @@ static struct platform_driver xillybus_platform_driver = { }, }; -static int __init xillybus_of_init(void) -{ - return platform_driver_register(&xillybus_platform_driver); -} - -static void __exit xillybus_of_exit(void) -{ - platform_driver_unregister(&xillybus_platform_driver); -} - -module_init(xillybus_of_init); -module_exit(xillybus_of_exit); +module_platform_driver(xillybus_platform_driver);