Skip to contentSkip to conversation

mmc: mmc_spi: Fix module autoload for OF platform driver

PATCH Applied Luis de Bethencourt 1 participant 1 message Sep 17, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 mmc: mmc_spi: Fix module autoload for OF platform driver

This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.

---
 drivers/mmc/host/mmc_spi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/mmc_spi.c +1 -0
index ae19d83..8ee11f4 100644
@@ -1511,6 +1511,7 @@ static const struct of_device_id mmc_spi_of_match_table[] = {
 	{ .compatible = "mmc-spi-slot", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, mmc_spi_of_match_table);
 
 static struct spi_driver mmc_spi_driver = {
 	.driver = {
Signature · 1 line
2.4.6