Commit fcf13f0b authored by Enric Balletbo i Serra's avatar Enric Balletbo i Serra Committed by Lee Jones

backlight: tps65217_bl: Add MODULE_DEVICE_TABLE

The device table is required to load modules based on modaliases.
Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 3698d7e7
...@@ -320,10 +320,19 @@ static int tps65217_bl_probe(struct platform_device *pdev) ...@@ -320,10 +320,19 @@ static int tps65217_bl_probe(struct platform_device *pdev)
return 0; 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 = { static struct platform_driver tps65217_bl_driver = {
.probe = tps65217_bl_probe, .probe = tps65217_bl_probe,
.driver = { .driver = {
.name = "tps65217-bl", .name = "tps65217-bl",
.of_match_table = of_match_ptr(tps65217_bl_of_match),
}, },
}; };
......
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