Commit 1a2dc9bf authored by Liao Chen's avatar Liao Chen Committed by Lee Jones
Browse files

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: default avatarLiao Chen <liaochen4@huawei.com>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: default avatarJianhua Lu <lujianhua000@gmail.com>
Link: https://lore.kernel.org/r/20240820121628.42321-1-liaochen4@huawei.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 9b216717
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 = {