build/patch/kernel/meson64-next/meson64_remove_spidev_warning.patch
2019-01-09 23:33:47 -05:00

18 lines
596 B
Diff

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