Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a620a65 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman
Browse files

staging: xillybus: Use module_platform_driver



module_platform_driver simplifies the code by removing the boilerplate.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 47052577
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -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);