@@ -160,18 +160,7 @@ static struct platform_driver rc5t583_gpio_driver = {
.probe = rc5t583_gpio_probe,
.remove = rc5t583_gpio_remove,
};
-
-static int __init rc5t583_gpio_init(void)
-{
- return platform_driver_register(&rc5t583_gpio_driver);
-}
-subsys_initcall(rc5t583_gpio_init);
-
-static void __exit rc5t583_gpio_exit(void)
-{
- platform_driver_unregister(&rc5t583_gpio_driver);
-}
-module_exit(rc5t583_gpio_exit);
+module_platform_driver(rc5t583_gpio_driver);
MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
MODULE_DESCRIPTION("GPIO interface for RC5T583");