mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
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>
This commit is contained in:
parent
ab6a713e7d
commit
da65a1589d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user