Skip to content

Commit 0f3e1ea

Browse files
Liao Chendamien-lemoal
authored andcommitted
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 <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 619c986 commit 0f3e1ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ata/sata_gemini.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ static const struct of_device_id gemini_sata_of_match[] = {
417417
{ .compatible = "cortina,gemini-sata-bridge", },
418418
{ /* sentinel */ }
419419
};
420+
MODULE_DEVICE_TABLE(of, gemini_sata_of_match);
420421

421422
static struct platform_driver gemini_sata_driver = {
422423
.driver = {

0 commit comments

Comments
 (0)