提交 fbe0f834 编写于 作者: A Anton Vorontsov 提交者: Grant Likely

mmc_spi: Fix unterminated of_match_table

commit 2ffe8c5f ("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: NAnton Vorontsov <avorontsov@mvista.com>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 19e4875f
...@@ -1536,6 +1536,7 @@ static int __devexit mmc_spi_remove(struct spi_device *spi) ...@@ -1536,6 +1536,7 @@ static int __devexit mmc_spi_remove(struct spi_device *spi)
#if defined(CONFIG_OF) #if defined(CONFIG_OF)
static struct of_device_id mmc_spi_of_match_table[] __devinitdata = { static struct of_device_id mmc_spi_of_match_table[] __devinitdata = {
{ .compatible = "mmc-spi-slot", }, { .compatible = "mmc-spi-slot", },
{},
}; };
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册