regulator: of: Add stub OF match function for !OF case
authorMark Brown <broonie@kernel.org>
Wed, 10 Sep 2014 14:17:01 +0000 (15:17 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 10 Sep 2014 15:40:07 +0000 (16:40 +0100)
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/internal.h

index a6043ad32ead1f5fbbbf709c043a41794d5757df..80ba2a35a04bb3e6c7164380fe44d3220c54dafd 100644 (file)
@@ -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