提交 d49ecc18 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

spi: spidev: Completely disable the spidev warning

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

An alternative strategy would be to use "rpi,spidev" instead, but that
would require many Raspberry Pi Device Tree changes.
Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 fc0026f3
...@@ -732,7 +732,7 @@ static int spidev_probe(struct spi_device *spi) ...@@ -732,7 +732,7 @@ static int spidev_probe(struct spi_device *spi)
* compatible string, it is a Linux implementation thing * compatible string, it is a Linux implementation thing
* rather than a description of the hardware. * rather than a description of the hardware.
*/ */
WARN(spi->dev.of_node && WARN(0 && spi->dev.of_node &&
of_device_is_compatible(spi->dev.of_node, "spidev"), of_device_is_compatible(spi->dev.of_node, "spidev"),
"%pOF: buggy DT: spidev listed directly in DT\n", spi->dev.of_node); "%pOF: buggy DT: spidev listed directly in DT\n", spi->dev.of_node);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册