regulator: of: Add stub OF match function for !OF case
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
a0c7b164ad
commit
ef126a4a81
|
@ -35,8 +35,18 @@ struct regulator {
|
||||||
struct dentry *debugfs;
|
struct dentry *debugfs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_OF
|
||||||
struct regulator_init_data *regulator_of_get_init_data(struct device *dev,
|
struct regulator_init_data *regulator_of_get_init_data(struct device *dev,
|
||||||
const struct regulator_desc *desc,
|
const struct regulator_desc *desc,
|
||||||
struct device_node **node);
|
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
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue