blob: d7e827f317e71e6d0a7ba167341c1ebeb26507d4 [file] [log] [blame]
From 0c9dacde2809aeb19d71d6b52e58fe541650b1c1 Mon Sep 17 00:00:00 2001
From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: Wed, 26 Oct 2016 15:13:15 +0200
Subject: [PATCH 024/299] base: soc: Provide a dummy implementation of
soc_device_match()
Provide a dummy implementation of soc_device_match(), to allow compiling
drivers that may be used on SoCs both with and without CONFIG_SOC_BUS,
and for compile testing.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
(cherry picked from commit da65a1589dacc7ec44ea0557a14d70a39d991f32)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
include/linux/sys_soc.h | 6 ++++++
1 file changed, 6 insertions(+)
--- a/include/linux/sys_soc.h
+++ b/include/linux/sys_soc.h
@@ -35,6 +35,12 @@ void soc_device_unregister(struct soc_de
*/
struct device *soc_device_to_device(struct soc_device *soc);
+#ifdef CONFIG_SOC_BUS
const struct soc_device_attribute *soc_device_match(
const struct soc_device_attribute *matches);
+#else
+static inline const struct soc_device_attribute *soc_device_match(
+ const struct soc_device_attribute *matches) { return NULL; }
+#endif
+
#endif /* __SOC_BUS_H */