build/patch/kernel/meson64-dev/meson64_remove_spidev_warning.patch
Igor Pečovnik 99a0630f47
Enable Meson64 DEV branch / kernel 5.4.y, tested for building (#1634)
* [AR-81] Enable Meson64 DEV branch / kernel 5.4.y, tested for building
* Adjust configs
2019-11-26 21:58:00 +01:00

17 lines
640 B
Diff

diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index b0c76e262..f8f91353f 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -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.
*/
- WARN(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);
+ if (spi->dev.of_node && !of_match_device(spidev_dt_ids, &spi->dev)) {
+ dev_info(&spi->dev, "probing from DT");
+ }
spidev_probe_acpi(spi);