Commit a944a892 authored by Keerthy's avatar Keerthy Committed by Linus Walleij

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: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1941b441
...@@ -230,6 +230,12 @@ static const struct of_device_id tps65218_dt_match[] = { ...@@ -230,6 +230,12 @@ static const struct of_device_id tps65218_dt_match[] = {
}; };
MODULE_DEVICE_TABLE(of, tps65218_dt_match); MODULE_DEVICE_TABLE(of, tps65218_dt_match);
static const struct platform_device_id tps65218_gpio_id_table[] = {
{ "tps65218-gpio", },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(platform, tps65218_gpio_id_table);
static struct platform_driver tps65218_gpio_driver = { static struct platform_driver tps65218_gpio_driver = {
.driver = { .driver = {
.name = "tps65218-gpio", .name = "tps65218-gpio",
...@@ -237,6 +243,7 @@ static struct platform_driver tps65218_gpio_driver = { ...@@ -237,6 +243,7 @@ static struct platform_driver tps65218_gpio_driver = {
}, },
.probe = tps65218_gpio_probe, .probe = tps65218_gpio_probe,
.remove = tps65218_gpio_remove, .remove = tps65218_gpio_remove,
.id_table = tps65218_gpio_id_table,
}; };
module_platform_driver(tps65218_gpio_driver); module_platform_driver(tps65218_gpio_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment