summaryrefslogtreecommitdiff
path: root/drivers/ata
diff options
context:
space:
mode:
authorLiao Chen <liaochen4@huawei.com>2024-08-31 07:21:58 +0000
committerDamien Le Moal <dlemoal@kernel.org>2024-09-02 08:06:23 +0900
commit0f3e1eaaf7f97839ac65f525efec392161d73219 (patch)
treefbe72508a61c0df762cc839b2b1a32eb765e94ef /drivers/ata
parent619c98622b74f97e78ec71cc99ee0d365bcc690f (diff)
downloadlwn-0f3e1eaaf7f97839ac65f525efec392161d73219.tar.gz
lwn-0f3e1eaaf7f97839ac65f525efec392161d73219.zip
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@huawei.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/sata_gemini.c1
1 files changed, 1 insertions, 0 deletions
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 = {