Skip to content

Commit fbe0f83

Browse files
Anton Vorontsovglikely
authored andcommitted
mmc_spi: Fix unterminated of_match_table
commit 2ffe8c5 ("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>
1 parent 19e4875 commit fbe0f83

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/mmc/host/mmc_spi.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,7 @@ static int __devexit mmc_spi_remove(struct spi_device *spi)
15361536
#if defined(CONFIG_OF)
15371537
static struct of_device_id mmc_spi_of_match_table[] __devinitdata = {
15381538
{ .compatible = "mmc-spi-slot", },
1539+
{},
15391540
};
15401541
#endif
15411542

0 commit comments

Comments
 (0)