@@ -147,18 +147,7 @@ static struct platform_driver tps6586x_gpio_driver = {
.probe = tps6586x_gpio_probe,
.remove = tps6586x_gpio_remove,
};
-
-static int __init tps6586x_gpio_init(void)
-{
- return platform_driver_register(&tps6586x_gpio_driver);
-}
-subsys_initcall(tps6586x_gpio_init);
-
-static void __exit tps6586x_gpio_exit(void)
-{
- platform_driver_unregister(&tps6586x_gpio_driver);
-}
-module_exit(tps6586x_gpio_exit);
+module_platform_driver(tps6586x_gpio_driver);
MODULE_ALIAS("platform:tps6586x-gpio");
MODULE_DESCRIPTION("GPIO interface for TPS6586X PMIC");