summaryrefslogtreecommitdiff
path: root/include/linux/sys_soc.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-10-26 15:13:15 +0200
committerGeert Uytterhoeven <geert+renesas@glider.be>2016-11-10 10:10:37 +0100
commitda65a1589dacc7ec44ea0557a14d70a39d991f32 (patch)
tree0a2324a902dd95c28a70e2505c56b65fce4eac06 /include/linux/sys_soc.h
parentab6a713e7dc2f92ad3bc3387122524655431501e (diff)
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>
Diffstat (limited to 'include/linux/sys_soc.h')
-rw-r--r--include/linux/sys_soc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sys_soc.h b/include/linux/sys_soc.h
index 9f5eb06f9fd8..bed223b70217 100644
--- a/include/linux/sys_soc.h
+++ b/include/linux/sys_soc.h
@@ -35,6 +35,12 @@ void soc_device_unregister(struct soc_device *soc_dev);
*/
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 */