From: Phil Elwell Date: Tue, 14 Jul 2015 09:26:09 +0000 (+0100) Subject: spidev: Add "spidev" compatible string to silence warning X-Git-Tag: archive/raspbian/4.9.51-1+rpi1~5^2~524 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=200fc2f79160f4489fd1dfa021942b277a75392b;p=linux-4.9.git spidev: Add "spidev" compatible string to silence warning See: https://github.com/raspberrypi/linux/issues/1054 --- diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 2e05046f866b..d780491b8013 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -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);