Last active
December 12, 2016 08:29
-
-
Save ynezz/0009468c0b3bfe497faacb075622cd21 to your computer and use it in GitHub Desktop.
[PATCH] kernel: Add spidev patch to silence warning about spidev listing in DT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c80d1a185cde478243f19f410ac0fb06769f6c33 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz> | |
Date: Tue, 12 Jul 2016 12:31:55 +0200 | |
Subject: [PATCH] kernel: Add spidev patch to silence warning about spidev | |
listing in DT | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit | |
[ 32.836659] spidev spi0.0: buggy DT: spidev listed directly in DT | |
[ 32.842763] ------------[ cut here ]------------ | |
Signed-off-by: Petr Štetiar <ynezz@true.cz> | |
--- | |
.../generic/patches-4.4/999-spidev-silence-warning.patch | 12 ++++++++++++ | |
1 file changed, 12 insertions(+) | |
create mode 100644 target/linux/generic/patches-4.4/999-spidev-silence-warning.patch | |
diff --git a/target/linux/generic/patches-4.4/999-spidev-silence-warning.patch b/target/linux/generic/patches-4.4/999-spidev-silence-warning.patch | |
new file mode 100644 | |
index 0000000..2e9cc64 | |
--- /dev/null | |
+++ b/target/linux/generic/patches-4.4/999-spidev-silence-warning.patch | |
@@ -0,0 +1,12 @@ | |
+Index: linux-4.4.14/drivers/spi/spidev.c | |
+=================================================================== | |
+--- linux-4.4.14.orig/drivers/spi/spidev.c 2016-06-24 19:18:38.000000000 +0200 | |
++++ linux-4.4.14/drivers/spi/spidev.c 2016-07-12 12:27:38.437120344 +0200 | |
+@@ -695,6 +695,7 @@ | |
+ static const struct of_device_id spidev_dt_ids[] = { | |
+ { .compatible = "rohm,dh2228fv" }, | |
+ { .compatible = "lineartechnology,ltc2488" }, | |
++ { .compatible = "spidev" }, | |
+ {}, | |
+ }; | |
+ MODULE_DEVICE_TABLE(of, spidev_dt_ids); | |
-- | |
1.9.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment