[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180409002239.163177-74-alexander.levin@microsoft.com>
Date: Mon, 9 Apr 2018 00:23:52 +0000
From: Sasha Levin <Alexander.Levin@...rosoft.com>
To: "stable@...r.kernel.org" <stable@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: Geert Uytterhoeven <geert+renesas@...der.be>,
Rob Herring <robh@...nel.org>,
Sasha Levin <Alexander.Levin@...rosoft.com>
Subject: [PATCH AUTOSEL for 4.9 074/293] of: Provide dummy
of_device_compatible_match() for compile-testing
From: Geert Uytterhoeven <geert+renesas@...der.be>
[ Upstream commit 3bc1630774bc9f202308ae04608a32c366b41caf ]
Most of_device_*() functions have dummy versions for CONFIG_OF=n,
but of_device_compatible_match() hasn't. Fix that to improve the
ability to do compile-testing.
Fixes: b9c13fe32faaa71c ("dt: Add of_device_compatible_match()")
Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
Signed-off-by: Rob Herring <robh@...nel.org>
Signed-off-by: Sasha Levin <alexander.levin@...rosoft.com>
---
include/linux/of.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 299aeb192727..283eea3e5261 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -619,6 +619,12 @@ static inline int of_device_is_compatible(const struct device_node *device,
return 0;
}
+static inline int of_device_compatible_match(struct device_node *device,
+ const char *const *compat)
+{
+ return 0;
+}
+
static inline bool of_device_is_available(const struct device_node *device)
{
return false;
--
2.15.1
Powered by blists - more mailing lists