Skip to content

Commit

Permalink
mmc_spi: Fix unterminated of_match_table
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
  • Loading branch information
Anton Vorontsov authored and glikely committed Aug 8, 2010
1 parent 19e4875 commit fbe0f83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/host/mmc_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fbe0f83

Please sign in to comment.