From: Phil Elwell Date: Tue, 14 Jul 2015 09:26:09 +0000 (+0100) Subject: spi: spidev: Completely disable the spidev warning X-Git-Tag: accepted/tizen/unified/20210330.111217~848 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7af6003675d51371ddd21466a7153ded3998d2c;p=platform%2Fkernel%2Flinux-rpi.git spi: spidev: Completely disable the spidev warning 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 --- diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 2255777..a262479 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -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);