Skip to content

Commit 1a2dc9b

Browse files
Liao Chenlag-linaro
authored andcommitted
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>
1 parent 9b21671 commit 1a2dc9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/video/backlight/ktz8866.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ static const struct of_device_id ktz8866_match_table[] = {
190190
},
191191
{},
192192
};
193+
MODULE_DEVICE_TABLE(of, ktz8866_match_table);
193194

194195
static struct i2c_driver ktz8866_driver = {
195196
.driver = {

0 commit comments

Comments
 (0)