From: Liao Chen Date: Tue, 20 Aug 2024 12:16:28 +0000 (+0000) Subject: backlight: ktz8866: Fix module autoloading X-Git-Tag: microblaze-v6.16~575^2~3 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=1a2dc9bf3b15d8d6683adeb29dc680decd19d5ae;p=linux-2.6-microblaze.git 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 Reviewed-by: Daniel Thompson Reviewed-by: Jianhua Lu Link: https://lore.kernel.org/r/20240820121628.42321-1-liaochen4@huawei.com Signed-off-by: Lee Jones --- diff --git a/drivers/video/backlight/ktz8866.c b/drivers/video/backlight/ktz8866.c index 2e508741c0af..351c2b4d63ed 100644 --- a/drivers/video/backlight/ktz8866.c +++ b/drivers/video/backlight/ktz8866.c @@ -190,6 +190,7 @@ static const struct of_device_id ktz8866_match_table[] = { }, {}, }; +MODULE_DEVICE_TABLE(of, ktz8866_match_table); static struct i2c_driver ktz8866_driver = { .driver = {