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

backlight: ktz8866: Fix module autoloading

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Jianhua Lu <lujianhua000@gmail.com>
Link: https://lore.kernel.org/r/20240820121628.42321-1-liaochen4@huawei.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Liao Chen and committed by
Lee Jones
1a2dc9bf 9b216717

+1
+1
drivers/video/backlight/ktz8866.c
··· 190 190 }, 191 191 {}, 192 192 }; 193 + MODULE_DEVICE_TABLE(of, ktz8866_match_table); 193 194 194 195 static struct i2c_driver ktz8866_driver = { 195 196 .driver = {