]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpio: tps65218: Add platform_device_id table
authorKeerthy <j-keerthy@ti.com>
Tue, 28 Jun 2016 12:30:52 +0000 (18:00 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Jul 2016 09:50:20 +0000 (11:50 +0200)
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>
drivers/gpio/gpio-tps65218.c

index 0eaeac8de9de7683bf3df6d6b67c44ef49d9fd57..1c09a19ae10c26c583551f500c0926cb2a53a71e 100644 (file)
@@ -230,6 +230,12 @@ static const struct of_device_id 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 = {
        .driver = {
                .name = "tps65218-gpio",
@@ -237,6 +243,7 @@ static struct platform_driver tps65218_gpio_driver = {
        },
        .probe = tps65218_gpio_probe,
        .remove = tps65218_gpio_remove,
+       .id_table = tps65218_gpio_id_table,
 };
 
 module_platform_driver(tps65218_gpio_driver);