[PATCH -next 3/3] ata: sata_gemini: Enable module autoloading

Liao Chen posted 3 patches 1 year, 5 months ago
There is a newer version of this series
[PATCH -next 3/3] ata: sata_gemini: Enable module autoloading
Posted by Liao Chen 1 year, 5 months ago
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@huawei.com>
---
 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
Re: [PATCH -next 3/3] ata: sata_gemini: Enable module autoloading
Posted by Linus Walleij 1 year, 5 months ago
On Thu, Aug 29, 2024 at 3:27 PM Liao Chen <liaochen4@huawei.com> wrote:

> 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@huawei.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij