diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 2ab6e782f14c..f54560d6bc2b 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -730,7 +730,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);