Skip to content

Commit 6e540da

Browse files
Liao Chenstorulf
authored andcommitted
mmc: sdhci-of-aspeed: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen <[email protected]> Acked-by: Andrew Jeffery <[email protected]> Fixes: bb7b8ec ("mmc: sdhci-of-aspeed: Add support for the ASPEED SD controller") Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 469e5e4 commit 6e540da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mmc/host/sdhci-of-aspeed.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ static const struct of_device_id aspeed_sdhci_of_match[] = {
510510
{ .compatible = "aspeed,ast2600-sdhci", .data = &ast2600_sdhci_pdata, },
511511
{ }
512512
};
513+
MODULE_DEVICE_TABLE(of, aspeed_sdhci_of_match);
513514

514515
static struct platform_driver aspeed_sdhci_driver = {
515516
.driver = {

0 commit comments

Comments
 (0)