Skip to content

Commit

Permalink
regulator: of: Add stub OF match function for !OF case
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Sep 10, 2014
1 parent a0c7b16 commit ef126a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/regulator/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ef126a4

Please sign in to comment.