]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc_spi: Fix unterminated of_match_table
authorAnton Vorontsov <avorontsov@mvista.com>
Sun, 8 Aug 2010 14:14:22 +0000 (18:14 +0400)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 8 Aug 2010 14:57:24 +0000 (08:57 -0600)
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>
drivers/mmc/host/mmc_spi.c

index 7b0f3ef50f9650241918a24cd50f330b2c9c8701..1145ea0792e6b32f86973a92c5f15e9cc8ea2e83 100644 (file)
@@ -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