video: rockchip: iep: add drm support
[firefly-linux-kernel-4.4.55.git] / drivers / regulator / internal.h
index 84bbda10c396bc89dfb0c0130b22847a16594a25..c74ac873402370b5057464b22a694672cccf4d73 100644 (file)
@@ -35,4 +35,20 @@ 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 regulator_config *config,
+                                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 regulator_config *config,
+                          struct device_node **node)
+{
+       return NULL;
+}
+#endif
+
 #endif