spi: spidev: Completely disable the spidev warning
authorPhil Elwell <phil@raspberrypi.org>
Tue, 14 Jul 2015 09:26:09 +0000 (10:26 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:46 +0000 (16:03 +0000)
An alternative strategy would be to use "rpi,spidev" instead, but that
would require many Raspberry Pi Device Tree changes.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/spi/spidev.c

index 795bef1..9a3b8a5 100644 (file)
@@ -746,7 +746,7 @@ static int spidev_probe(struct spi_device *spi)
         * compatible string, it is a Linux implementation thing
         * 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"),
             "%pOF: buggy DT: spidev listed directly in DT\n", spi->dev.of_node);