提交 ef126a4a 编写于 作者: M Mark Brown

regulator: of: Add stub OF match function for !OF case

Signed-off-by: NMark Brown <broonie@kernel.org>
上级 a0c7b164
......@@ -35,8 +35,18 @@ struct regulator {
struct dentry *debugfs;
};
#ifdef CONFIG_OF
struct regulator_init_data *regulator_of_get_init_data(struct device *dev,
const struct regulator_desc *desc,
struct device_node **node);
#else
static inline struct regulator_init_data *
regulator_of_get_init_data(struct device *dev,
const struct regulator_desc *desc,
struct device_node **node)
{
return NULL;
}
#endif
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册