[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240831072158.789419-4-liaochen4@huawei.com>
Date: Sat, 31 Aug 2024 07:21:58 +0000
From: Liao Chen <liaochen4@...wei.com>
To: <linux-ide@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <s.shtylyov@....ru>, <linus.walleij@...aro.org>, <dlemoal@...nel.org>,
<cassel@...nel.org>
Subject: [PATCH -next v2 3/3] ata: sata_gemini: Enable module autoloading
Add MODULE_DEVICE_TABLE(), so modules can be properly autoloaded based
on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@...wei.com>
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
---
drivers/ata/sata_gemini.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ata/sata_gemini.c b/drivers/ata/sata_gemini.c
index 4c270999ba3c..f574e3c3f5b4 100644
--- a/drivers/ata/sata_gemini.c
+++ b/drivers/ata/sata_gemini.c
@@ -417,6 +417,7 @@ static const struct of_device_id gemini_sata_of_match[] = {
{ .compatible = "cortina,gemini-sata-bridge", },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, gemini_sata_of_match);
static struct platform_driver gemini_sata_driver = {
.driver = {
--
2.34.1
Powered by blists - more mailing lists