]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
base: soc: Provide a dummy implementation of soc_device_match()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 26 Oct 2016 13:13:15 +0000 (15:13 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 10 Nov 2016 09:10:37 +0000 (10:10 +0100)
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>
include/linux/sys_soc.h

index 9f5eb06f9fd875653d4cd5ae679c4d7ca684cd17..bed223b70217fd2d23f35a72a7d647a7cd0d525d 100644 (file)
@@ -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 */