aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Huang <hl@rock-chips.com>2018-06-16 15:42:24 +0800
committerShirle Yuen <shirleyshukyee@google.com>2018-06-21 15:24:09 -0700
commit110f156a6ccdd2e1259da1cbff5f95833632434d (patch)
tree55a9ea7e698a71ae84ae88ed98d8eb88fd144af6
parent781cc6d7059e07478399139d2a14a3f4134f7d0f (diff)
downloadrk-v4.4-110f156a6ccdd2e1259da1cbff5f95833632434d.tar.gz
spi: spidev: Add spidev patch to silence warning about spidev listing in DT
spidev is the userspace interface to the SPI subsystem. many other platforms, use a compatible string of "spidev" to cause the spidev module to be loaded. A new commit in the upstream 4.1 branch (956b200) demonstrates the author's objection to this practice by causing the module to WARN when it detects that usage. Add the "spidev" string to compatible to silence this warning. Change-Id: I3c904bb5520c794c3431093b9bffe7c9293f8604 Signed-off-by: Lin Huang <hl@rock-chips.com> (cherry picked from commit da404b38fa61eb09b1a5e7c2de59fbaccdafd57b)
-rw-r--r--drivers/spi/spidev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index b388c3227755..46d10cc29d5b 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -696,6 +696,7 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "rohm,dh2228fv" },
{ .compatible = "lineartechnology,ltc2488" },
{ .compatible = "rockchip,spidev" },
+ { .compatible = "spidev" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);