[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240827122431.430818-1-liaochen4@huawei.com>
Date: Tue, 27 Aug 2024 12:24:31 +0000
From: Liao Chen <liaochen4@...wei.com>
To: <linux-leds@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <kabel@...nel.org>, <pavel@....cz>, <lee@...nel.org>
Subject: [PATCH -next] leds: turris-omnia: 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@...wei.com>
---
drivers/leds/leds-turris-omnia.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c
index 39f740be058f..dd547f5fc800 100644
--- a/drivers/leds/leds-turris-omnia.c
+++ b/drivers/leds/leds-turris-omnia.c
@@ -532,6 +532,7 @@ static const struct of_device_id of_omnia_leds_match[] = {
{ .compatible = "cznic,turris-omnia-leds", },
{},
};
+MODULE_DEVICE_TABLE(of, of_omnia_leds_match);
static const struct i2c_device_id omnia_id[] = {
{ "omnia" },
--
2.34.1
Powered by blists - more mailing lists