]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: sdhci-of-aspeed: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 12:48:51 +0000 (12:48 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 28 Aug 2024 14:56:19 +0000 (16:56 +0200)
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Fixes: bb7b8ec62dfb ("mmc: sdhci-of-aspeed: Add support for the ASPEED SD controller")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240826124851.379759-1-liaochen4@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-aspeed.c

index 430c1f90037b59e970ebcf1fff463e927b18e0e2..37240895ffaafc4eaf9fbed69007fec613f8bdcb 100644 (file)
@@ -510,6 +510,7 @@ static const struct of_device_id aspeed_sdhci_of_match[] = {
        { .compatible = "aspeed,ast2600-sdhci", .data = &ast2600_sdhci_pdata, },
        { }
 };
+MODULE_DEVICE_TABLE(of, aspeed_sdhci_of_match);
 
 static struct platform_driver aspeed_sdhci_driver = {
        .driver         = {