build/patch/kernel/sunxi-dev/general-spidev-remove-warnings.patch
Igor Pecovnik adeb736f8e
sunxi-dev: fix the same spi bug as in sunxi-next, remove deprecated patches and adjust one
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-07-03 21:28:48 +02:00

22 lines
811 B
Diff

diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index b0c76e262..c56f6dc4c 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -722,12 +722,12 @@ static int spidev_probe(struct spi_device *spi)
/*
* spidev should never be referenced in DT without a specific
- * compatible string, it is a Linux implementation thing
- * rather than a description of the hardware.
+ * compatible string, but people don't care and use DT overlays
+ * to activate SPIdev on demand
*/
- 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);