aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mmc_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/mmc_spi.c')
-rw-r--r--drivers/mmc/host/mmc_spi.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c
index ad847a24a675..1145ea0792e6 100644
--- a/drivers/mmc/host/mmc_spi.c
+++ b/drivers/mmc/host/mmc_spi.c
@@ -1533,12 +1533,21 @@ static int __devexit mmc_spi_remove(struct spi_device *spi)
1533 return 0; 1533 return 0;
1534} 1534}
1535 1535
1536#if defined(CONFIG_OF)
1537static struct of_device_id mmc_spi_of_match_table[] __devinitdata = {
1538 { .compatible = "mmc-spi-slot", },
1539 {},
1540};
1541#endif
1536 1542
1537static struct spi_driver mmc_spi_driver = { 1543static struct spi_driver mmc_spi_driver = {
1538 .driver = { 1544 .driver = {
1539 .name = "mmc_spi", 1545 .name = "mmc_spi",
1540 .bus = &spi_bus_type, 1546 .bus = &spi_bus_type,
1541 .owner = THIS_MODULE, 1547 .owner = THIS_MODULE,
1548#if defined(CONFIG_OF)
1549 .of_match_table = mmc_spi_of_match_table,
1550#endif
1542 }, 1551 },
1543 .probe = mmc_spi_probe, 1552 .probe = mmc_spi_probe,
1544 .remove = __devexit_p(mmc_spi_remove), 1553 .remove = __devexit_p(mmc_spi_remove),