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, 20 Feb 2017 12:17:36 +0000 (12:17 +0000)
See: https://github.com/raspberrypi/linux/issues/1054

drivers/spi/spidev.c

index 2e05046f866bd01bf87edcdeff0d5b76d4d0aea7..d780491b8013a4e97fa843958964454e4463fe5e 100644 (file)
@@ -696,6 +696,7 @@ static struct class *spidev_class;
 static const struct of_device_id spidev_dt_ids[] = {
        { .compatible = "rohm,dh2228fv" },
        { .compatible = "lineartechnology,ltc2488" },
+       { .compatible = "spidev" },
        {},
 };
 MODULE_DEVICE_TABLE(of, spidev_dt_ids);