Message ID | 20240831072158.789419-2-liaochen4@huawei.com |
---|---|
State | New |
Headers | show |
Series | ata: Enable module autoloading | expand |
On Sat, Aug 31, 2024 at 9:30 AM Liao Chen <liaochen4@huawei.com> wrote: > 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> Yours, Linus Walleij
diff --git a/drivers/ata/pata_ftide010.c b/drivers/ata/pata_ftide010.c index 4d6ef90ccc77..73a9a5109238 100644 --- a/drivers/ata/pata_ftide010.c +++ b/drivers/ata/pata_ftide010.c @@ -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 = {