Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Enric Balletbo i Serra and committed by
Lee Jones
fcf13f0b 3698d7e7

+9
+9
drivers/video/backlight/tps65217_bl.c
··· 320 320 return 0; 321 321 } 322 322 323 + #ifdef CONFIG_OF 324 + static const struct of_device_id tps65217_bl_of_match[] = { 325 + { .compatible = "ti,tps65217-bl", }, 326 + { /* sentinel */ }, 327 + }; 328 + MODULE_DEVICE_TABLE(of, tps65217_bl_of_match); 329 + #endif 330 + 323 331 static struct platform_driver tps65217_bl_driver = { 324 332 .probe = tps65217_bl_probe, 325 333 .driver = { 326 334 .name = "tps65217-bl", 335 + .of_match_table = of_match_ptr(tps65217_bl_of_match), 327 336 }, 328 337 }; 329 338