summaryrefslogtreecommitdiff
path: root/drivers/staging/xillybus
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-10 09:30:04 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-11 15:23:14 -0700
commit7a620a650b975cefd1b10b2ed7144b6c480fff12 (patch)
treeed8e6abfde1ae8f4d2fcfc28e90b3d63ce0bcbed /drivers/staging/xillybus
parent47052577bcb941da36a991fea3dadc0d3b14c741 (diff)
staging: xillybus: Use module_platform_driver
module_platform_driver simplifies the code by removing the boilerplate. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xillybus')
-rw-r--r--drivers/staging/xillybus/xillybus_of.c13
1 files changed, 1 insertions, 12 deletions
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);