[linux-yocto] [PATCH] gpio: update Intel WhiskeyCove GPIO driver
Nilesh Bacchewar
nilesh.bacchewar at intel.com
Wed Jul 6 15:12:10 PDT 2016
Incremental patch for Intel WhiskeyCove GPIO driver based on
updated patch version
Changes:
- Typo fix (Whsikey --> Whiskey).
- Removed the device id table and added MODULE_ALIAS()
Signed-off-by: Nilesh Bacchewar <nilesh.bacchewar at intel.com>
---
drivers/gpio/Kconfig | 2 +-
drivers/gpio/gpio-wcove.c | 12 ++++--------
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index ceea085..f343a8c 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -733,7 +733,7 @@ config GPIO_WHISKEY_COVE
help
Support for GPIO pins on Whiskey Cove PMIC.
- Say Yes if you have a Intel SoC based tablet with Whsikey Cove PMIC
+ Say Yes if you have a Intel SoC based tablet with Whiskey Cove PMIC
inside.
This driver can also be built as a module. If so, the module will be
diff --git a/drivers/gpio/gpio-wcove.c b/drivers/gpio/gpio-wcove.c
index ed3ac88..5983207 100644
--- a/drivers/gpio/gpio-wcove.c
+++ b/drivers/gpio/gpio-wcove.c
@@ -382,17 +382,12 @@ static int wcove_gpio_remove(struct platform_device *pdev)
return 0;
}
-static const struct platform_device_id pmic_gpio_id_table[] = {
- { "bxt_wcove_gpio", },
-};
-
static struct platform_driver wcove_gpio_driver = {
- .probe = wcove_gpio_probe,
- .remove = wcove_gpio_remove,
.driver = {
- .name = "wcove_gpio",
+ .name = "bxt_wcove_gpio",
},
- .id_table = pmic_gpio_id_table,
+ .probe = wcove_gpio_probe,
+ .remove = wcove_gpio_remove,
};
module_platform_driver(wcove_gpio_driver);
@@ -400,3 +395,4 @@ module_platform_driver(wcove_gpio_driver);
MODULE_AUTHOR("Ajay Thomas <ajay.thomas.david.rajamanickam at intel.com>");
MODULE_DESCRIPTION("Intel Whiskey Cove GPIO Driver");
MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:bxt_wcove_gpio");
--
1.9.1
More information about the linux-yocto
mailing list