Message ID | 20240831072158.789419-3-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_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index 246bb4f8f1f7..8a9ee828478f 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c @@ -290,6 +290,7 @@ static const struct of_device_id ixp4xx_pata_of_match[] = { { .compatible = "intel,ixp4xx-compact-flash", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, ixp4xx_pata_of_match); static struct platform_driver ixp4xx_pata_platform_driver = { .driver = {