]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ata: pata_ftide010: Enable module autoloading
authorLiao Chen <liaochen4@huawei.com>
Sat, 31 Aug 2024 07:21:56 +0000 (07:21 +0000)
committerDamien Le Moal <dlemoal@kernel.org>
Sun, 1 Sep 2024 23:05:36 +0000 (08:05 +0900)
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: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/pata_ftide010.c

index 4d6ef90ccc774b5c9f0b0edb8d455e65f1251244..73a9a5109238b31647286689f604d3a8c1c61dde 100644 (file)
@@ -549,6 +549,7 @@ static const struct of_device_id pata_ftide010_of_match[] = {
        { .compatible = "faraday,ftide010", },
        { /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, pata_ftide010_of_match);
 
 static struct platform_driver pata_ftide010_driver = {
        .driver = {