diff options
author | Mark Brown <broonie@kernel.org> | 2014-09-10 14:17:01 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-10 15:40:07 (GMT) |
commit | ef126a4a8112998a9d4dcea166781331f1020f76 (patch) | |
tree | 4cef536cf9f700280bbf32a1ec276a1c277e2a2b | |
parent | a0c7b164ad115ec0556dc0904ee2218cbc5cedfa (diff) | |
download | linux-ef126a4a8112998a9d4dcea166781331f1020f76.tar.xz |
regulator: of: Add stub OF match function for !OF case
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/internal.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/regulator/internal.h b/drivers/regulator/internal.h index a6043ad..80ba2a3 100644 --- a/drivers/regulator/internal.h +++ b/drivers/regulator/internal.h @@ -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 |