summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAnton Vorontsov2010-08-08 16:14:22 +0200
committerGrant Likely2010-08-08 16:57:24 +0200
commitfbe0f8348fd6c3d016a3f48756eb729b41a67c22 (patch)
tree2ebae9492ecedf94a6d0a016ca8ce31828092aa6 /drivers/mmc
parentof/sparc: fix build regression from of_device changes (diff)
downloadkernel-qcow2-linux-fbe0f8348fd6c3d016a3f48756eb729b41a67c22.tar.gz
kernel-qcow2-linux-fbe0f8348fd6c3d016a3f48756eb729b41a67c22.tar.xz
kernel-qcow2-linux-fbe0f8348fd6c3d016a3f48756eb729b41a67c22.zip
mmc_spi: Fix unterminated of_match_table
commit 2ffe8c5f323c3b9749bf7bc2375d909d20bdbb15 ("of: refactor of_modalias_node() and remove explicit match table"), introduced an unterminated of_match_table, which may cause kernel to oops. This patch fixes the issue by adding an empty device ID. Signed-off-by: Anton Vorontsov <avorontsov@mvista.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/mmc_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c
index 7b0f3ef50f96..1145ea0792e6 100644
--- a/drivers/mmc/host/mmc_spi.c
+++ b/drivers/mmc/host/mmc_spi.c
@@ -1536,6 +1536,7 @@ static int __devexit mmc_spi_remove(struct spi_device *spi)
#if defined(CONFIG_OF)
static struct of_device_id mmc_spi_of_match_table[] __devinitdata = {
{ .compatible = "mmc-spi-slot", },
+ {},
};
#endif