backlight: tps65217_bl: Add MODULE_DEVICE_TABLE
authorEnric Balletbo i Serra <eballetbo@gmail.com>
Sun, 29 Nov 2015 16:29:46 +0000 (17:29 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jan 2016 06:36:35 +0000 (06:36 +0000)
The device table is required to load modules based on modaliases.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/tps65217_bl.c

index 61d72bffd402f25c2abc10266c4241c32ce006e5..fd524ad860a57bd4ac11166eeef278ef306358a4 100644 (file)
@@ -320,10 +320,19 @@ static int tps65217_bl_probe(struct platform_device *pdev)
        return 0;
 }
 
+#ifdef CONFIG_OF
+static const struct of_device_id tps65217_bl_of_match[] = {
+       { .compatible = "ti,tps65217-bl", },
+       { /* sentinel */ },
+};
+MODULE_DEVICE_TABLE(of, tps65217_bl_of_match);
+#endif
+
 static struct platform_driver tps65217_bl_driver = {
        .probe          = tps65217_bl_probe,
        .driver         = {
                .name   = "tps65217-bl",
+               .of_match_table = of_match_ptr(tps65217_bl_of_match),
        },
 };