[ meson64-dev ] update spidev warning patch

This commit is contained in:
Thomas McKahan 2019-01-22 23:54:14 -05:00
parent cd0ada7248
commit cc03b0925f

View file

@ -1,18 +1,17 @@
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index cda10719d..412adcba5 100644 index b0c76e262..f8f91353f 100644
--- a/drivers/spi/spidev.c --- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c
@@ -725,11 +725,9 @@ static int spidev_probe(struct spi_device *spi) @@ -725,9 +725,9 @@ static int spidev_probe(struct spi_device *spi)
* compatible string, it is a Linux implementation thing
* rather than a description of the hardware. * rather than a description of the hardware.
*/ */
if (spi->dev.of_node && !of_match_device(spidev_dt_ids, &spi->dev)) { - WARN(spi->dev.of_node &&
- dev_err(&spi->dev, "buggy DT: spidev listed directly in DT\n"); - of_device_is_compatible(spi->dev.of_node, "spidev"),
- WARN_ON(spi->dev.of_node && - "%pOF: buggy DT: spidev listed directly in DT\n", spi->dev.of_node);
- !of_match_device(spidev_dt_ids, &spi->dev)); + if (spi->dev.of_node && !of_match_device(spidev_dt_ids, &spi->dev)) {
+ dev_info(&spi->dev, "probing from DT"); + dev_info(&spi->dev, "probing from DT");
} + }
-
+
spidev_probe_acpi(spi); spidev_probe_acpi(spi);
/* Allocate driver data */