Skip to content

Commit 4b4e1a9

Browse files
Liao Chendamien-lemoal
authored andcommitted
ata: pata_ftide010: 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 <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 9526dec commit 4b4e1a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ata/pata_ftide010.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ static const struct of_device_id pata_ftide010_of_match[] = {
549549
{ .compatible = "faraday,ftide010", },
550550
{ /* sentinel */ }
551551
};
552+
MODULE_DEVICE_TABLE(of, pata_ftide010_of_match);
552553

553554
static struct platform_driver pata_ftide010_driver = {
554555
.driver = {

0 commit comments

Comments
 (0)