Skip to contentSkip to conversation

mmc: sdhci_am654: Fix module autoload

PATCH In review Faiz Abbas 2 participants 2 messages Oct 8, 2020 – Oct 9, 2020

Subsystems (3)
lore
Share & tools
lore

Faiz Abbas

author
#0 lore raw

PATCH 1/1 mmc: sdhci_am654: Fix module autoload

Add a MODULE_DEVICE_TABLE() entry so that the driver is autoloaded when built as a module.

---
 drivers/mmc/host/sdhci_am654.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci_am654.c +1 -0
index 2bce962bf7e4..a64ea143d185 100644
@@ -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)
 {
Signature · 1 line
2.17.1
#1 lore raw
Quoted 5 lines · Faiz Abbas

Add a MODULE_DEVICE_TABLE() entry so that the driver is autoloaded when built as a module.

Applied for next, thanks!

Kind regards
Uffe

Quoted 19 lines
---
 drivers/mmc/host/sdhci_am654.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci_am654.c +1 -1
index 2bce962bf7e4..a64ea143d185 100644
@@ -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)
 {
--

2.17.1