Commit 64c38866 authored by Liao Chen's avatar Liao Chen Committed by Lee Jones

leds: turris-omnia: Fix module autoloading with MODULE_DEVICE_TABLE()

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>
Link: https://lore.kernel.org/r/20240827122431.430818-1-liaochen4@huawei.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent 2aad93b6
...@@ -530,6 +530,7 @@ static const struct of_device_id of_omnia_leds_match[] = { ...@@ -530,6 +530,7 @@ static const struct of_device_id of_omnia_leds_match[] = {
{ .compatible = "cznic,turris-omnia-leds", }, { .compatible = "cznic,turris-omnia-leds", },
{}, {},
}; };
MODULE_DEVICE_TABLE(of, of_omnia_leds_match);
static const struct i2c_device_id omnia_id[] = { static const struct i2c_device_id omnia_id[] = {
{ "omnia" }, { "omnia" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment