aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2016-06-28 08:30:52 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-07-04 05:50:20 -0400
commita944a892aa8ddecf6e2df432e6965dc86d73e3aa (patch)
treeeebd93cad659a3fc917c0fd8b3473c309471a489
parent1941b4419a24e026ce8354a2fd40c9387577697e (diff)
gpio: tps65218: Add platform_device_id table
platform_device_id table is needed for adding the tps65218-gpio module to the mfd_cell array. Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpio-tps65218.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-tps65218.c b/drivers/gpio/gpio-tps65218.c
index 0eaeac8de9de..1c09a19ae10c 100644
--- a/drivers/gpio/gpio-tps65218.c
+++ b/drivers/gpio/gpio-tps65218.c
@@ -230,6 +230,12 @@ static const struct of_device_id tps65218_dt_match[] = {
230}; 230};
231MODULE_DEVICE_TABLE(of, tps65218_dt_match); 231MODULE_DEVICE_TABLE(of, tps65218_dt_match);
232 232
233static const struct platform_device_id tps65218_gpio_id_table[] = {
234 { "tps65218-gpio", },
235 { /* sentinel */ }
236};
237MODULE_DEVICE_TABLE(platform, tps65218_gpio_id_table);
238
233static struct platform_driver tps65218_gpio_driver = { 239static struct platform_driver tps65218_gpio_driver = {
234 .driver = { 240 .driver = {
235 .name = "tps65218-gpio", 241 .name = "tps65218-gpio",
@@ -237,6 +243,7 @@ static struct platform_driver tps65218_gpio_driver = {
237 }, 243 },
238 .probe = tps65218_gpio_probe, 244 .probe = tps65218_gpio_probe,
239 .remove = tps65218_gpio_remove, 245 .remove = tps65218_gpio_remove,
246 .id_table = tps65218_gpio_id_table,
240}; 247};
241 248
242module_platform_driver(tps65218_gpio_driver); 249module_platform_driver(tps65218_gpio_driver);