]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/regulator/consumer.h
regulator: Add devm_regulator_get()
[karo-tx-linux.git] / include / linux / regulator / consumer.h
index f2698a0edfc44486a95bd8379b1fa40dd56e1e70..bcfe10658763dff7ed5ae791d51ac141333b411f 100644 (file)
@@ -132,6 +132,8 @@ struct regulator_bulk_data {
 /* regulator get and put */
 struct regulator *__must_check regulator_get(struct device *dev,
                                             const char *id);
+struct regulator *__must_check devm_regulator_get(struct device *dev,
+                                            const char *id);
 struct regulator *__must_check regulator_get_exclusive(struct device *dev,
                                                       const char *id);
 void regulator_put(struct regulator *regulator);
@@ -200,6 +202,13 @@ static inline struct regulator *__must_check regulator_get(struct device *dev,
         */
        return NULL;
 }
+
+static inline struct regulator *__must_check
+devm_regulator_get(struct device *dev, const char *id)
+{
+       return NULL;
+}
+
 static inline void regulator_put(struct regulator *regulator)
 {
 }