diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 225577709c0335f5f3acbf6c4e13d9271e912c83..a262479f0a92c56a599eae0cb7df535ef1bd2d29 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);