From: Mark Brown Date: Wed, 10 Sep 2014 14:17:01 +0000 (+0100) Subject: regulator: of: Add stub OF match function for !OF case X-Git-Tag: v3.18-rc1~146^2~2^4 X-Git-Url: https://repo.jachan.dev/linux.git/commitdiff_plain/ef126a4a8112998a9d4dcea166781331f1020f76 regulator: of: Add stub OF match function for !OF case Signed-off-by: Mark Brown --- 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 { 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