spidev: Add "spidev" compatible string to silence warning
authorPhil Elwell <phil@raspberrypi.org>
Tue, 14 Jul 2015 09:26:09 +0000 (10:26 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:07:51 +0000 (00:07 +0100)
See: https://github.com/raspberrypi/linux/issues/1054

drivers/spi/spidev.c

index cda1071..4f3779d 100644 (file)
@@ -669,6 +669,7 @@ static const struct of_device_id spidev_dt_ids[] = {
        { .compatible = "lineartechnology,ltc2488" },
        { .compatible = "ge,achc" },
        { .compatible = "semtech,sx1301" },
+       { .compatible = "spidev" },
        {},
 };
 MODULE_DEVICE_TABLE(of, spidev_dt_ids);