mmc: sdhci_am654: Fix module autoload
authorFaiz Abbas <faiz_abbas@ti.com>
Thu, 8 Oct 2020 10:01:29 +0000 (15:31 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 9 Oct 2020 06:58:58 +0000 (08:58 +0200)
Add a MODULE_DEVICE_TABLE() entry so that the driver is autoloaded
when built as a module.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Link: https://lore.kernel.org/r/20201008100129.13917-1-faiz_abbas@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci_am654.c

index 2bce962bf7e4f207016195717cec0842b4fe07b3..a64ea143d1852ed1f549197e7232e97d815a52e1 100644 (file)
@@ -739,6 +739,7 @@ static const struct of_device_id sdhci_am654_of_match[] = {
        },
        { /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, sdhci_am654_of_match);
 
 static int sdhci_am654_probe(struct platform_device *pdev)
 {