mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-26 19:44:21 +08:00
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;
|
||||
};
|
||||
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user