@@ -1464,7 +1464,7 @@ config GPIO_MAX77650
These chips have a single pin that can be configured as GPIO.
config GPIO_PALMAS
- bool "TI PALMAS series PMICs GPIO"
+ tristate "TI PALMAS series PMICs GPIO"
depends on MFD_PALMAS
help
Select this option to enable GPIO driver for the TI PALMAS
@@ -191,9 +191,9 @@ static struct platform_driver palmas_gpio_driver = {
.driver.of_match_table = of_palmas_gpio_match,
.probe = palmas_gpio_probe,
};
+module_platform_driver(palmas_gpio_driver);
-static int __init palmas_gpio_init(void)
-{
- return platform_driver_register(&palmas_gpio_driver);
-}
-subsys_initcall(palmas_gpio_init);
+MODULE_ALIAS("platform:palmas_gpio");
+MODULE_DESCRIPTION("TI PALMAS series GPIO driver");
+MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
+MODULE_LICENSE("GPL");