aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2014-09-10 10:17:01 -0400
committerMark Brown <broonie@kernel.org>2014-09-10 11:40:07 -0400
commitef126a4a8112998a9d4dcea166781331f1020f76 (patch)
tree4cef536cf9f700280bbf32a1ec276a1c277e2a2b
parenta0c7b164ad115ec0556dc0904ee2218cbc5cedfa (diff)
regulator: of: Add stub OF match function for !OF case
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/regulator/internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/regulator/internal.h b/drivers/regulator/internal.h
index a6043ad32ead..80ba2a35a04b 100644
--- a/drivers/regulator/internal.h
+++ b/drivers/regulator/internal.h
@@ -35,8 +35,18 @@ struct regulator {
35 struct dentry *debugfs; 35 struct dentry *debugfs;
36}; 36};
37 37
38#ifdef CONFIG_OF
38struct regulator_init_data *regulator_of_get_init_data(struct device *dev, 39struct regulator_init_data *regulator_of_get_init_data(struct device *dev,
39 const struct regulator_desc *desc, 40 const struct regulator_desc *desc,
40 struct device_node **node); 41 struct device_node **node);
42#else
43static inline struct regulator_init_data *
44regulator_of_get_init_data(struct device *dev,
45 const struct regulator_desc *desc,
46 struct device_node **node)
47{
48 return NULL;
49}
50#endif
41 51
42#endif 52#endif