aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <eballetbo@gmail.com>2015-11-29 11:29:46 -0500
committerLee Jones <lee.jones@linaro.org>2016-01-11 01:36:35 -0500
commitfcf13f0b9e4b54c51dff8366fc9a96d85129ff4c (patch)
tree5f8e975c85176adfd0e84f6a200c8598737f3568
parent3698d7e7d221a5c90d4b55e96d0c8f98a8b4d7df (diff)
backlight: tps65217_bl: Add MODULE_DEVICE_TABLE
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>
-rw-r--r--drivers/video/backlight/tps65217_bl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/backlight/tps65217_bl.c b/drivers/video/backlight/tps65217_bl.c
index 61d72bffd402..fd524ad860a5 100644
--- a/drivers/video/backlight/tps65217_bl.c
+++ b/drivers/video/backlight/tps65217_bl.c
@@ -320,10 +320,19 @@ static int tps65217_bl_probe(struct platform_device *pdev)
320 return 0; 320 return 0;
321} 321}
322 322
323#ifdef CONFIG_OF
324static const struct of_device_id tps65217_bl_of_match[] = {
325 { .compatible = "ti,tps65217-bl", },
326 { /* sentinel */ },
327};
328MODULE_DEVICE_TABLE(of, tps65217_bl_of_match);
329#endif
330
323static struct platform_driver tps65217_bl_driver = { 331static struct platform_driver tps65217_bl_driver = {
324 .probe = tps65217_bl_probe, 332 .probe = tps65217_bl_probe,
325 .driver = { 333 .driver = {
326 .name = "tps65217-bl", 334 .name = "tps65217-bl",
335 .of_match_table = of_match_ptr(tps65217_bl_of_match),
327 }, 336 },
328}; 337};
329 338