spi: spidev: Completely disable the spidev warning
authorPhil Elwell <phil@raspberrypi.org>
Tue, 14 Jul 2015 09:26:09 +0000 (10:26 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:12:46 +0000 (19:12 +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 2255777..a262479 100644 (file)
@@ -732,7 +732,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);