提交 a8b66db8 编写于 作者: A Alexander Aring 提交者: David S. Miller

at86rf230: remove #ifdef CONFIG_OF

This is already handled by the of_match_ptr macro.
Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 90b15520
......@@ -1215,7 +1215,6 @@ static int at86rf230_remove(struct spi_device *spi)
return 0;
}
#if IS_ENABLED(CONFIG_OF)
static const struct of_device_id at86rf230_of_match[] = {
{ .compatible = "atmel,at86rf230", },
{ .compatible = "atmel,at86rf231", },
......@@ -1224,7 +1223,6 @@ static const struct of_device_id at86rf230_of_match[] = {
{ },
};
MODULE_DEVICE_TABLE(of, at86rf230_of_match);
#endif
static const struct spi_device_id at86rf230_device_id[] = {
{ .name = "at86rf230", },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册