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

Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Mark Brown 2014-09-10 15:17:01 +01:00
parent a0c7b164ad
commit ef126a4a81
1 changed files with 10 additions and 0 deletions

View File

@ -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