Merge branch 'slab/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penber...
[deliverable/linux.git] / drivers / gpio / gpio-vx855.c
index ef5aabd8b8b779a52dbc34d1f70465a3c9f3adec..76ebfe5ff70219ef9faea3f39c6fa614f0e8cceb 100644 (file)
@@ -315,17 +315,7 @@ static struct platform_driver vx855gpio_driver = {
        .remove         = __devexit_p(vx855gpio_remove),
 };
 
-static int vx855gpio_init(void)
-{
-       return platform_driver_register(&vx855gpio_driver);
-}
-module_init(vx855gpio_init);
-
-static void vx855gpio_exit(void)
-{
-       platform_driver_unregister(&vx855gpio_driver);
-}
-module_exit(vx855gpio_exit);
+module_platform_driver(vx855gpio_driver);
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Harald Welte <HaraldWelte@viatech.com>");
This page took 0.027922 seconds and 5 git commands to generate.