@@ -175,6 +175,8 @@ struct regulator *__must_check of_regulator_get_optional(struct device *dev,
175
175
struct regulator * __must_check devm_of_regulator_get_optional (struct device * dev ,
176
176
struct device_node * node ,
177
177
const char * id );
178
+ int __must_check of_regulator_bulk_get_all (struct device * dev , struct device_node * np ,
179
+ struct regulator_bulk_data * * consumers );
178
180
#else
179
181
static inline struct regulator * __must_check of_regulator_get_optional (struct device * dev ,
180
182
struct device_node * node ,
@@ -189,6 +191,13 @@ static inline struct regulator *__must_check devm_of_regulator_get_optional(stru
189
191
{
190
192
return ERR_PTR (- ENODEV );
191
193
}
194
+
195
+ static inline int of_regulator_bulk_get_all (struct device * dev , struct device_node * np ,
196
+ struct regulator_bulk_data * * consumers )
197
+ {
198
+ return 0 ;
199
+ }
200
+
192
201
#endif
193
202
194
203
int regulator_register_supply_alias (struct device * dev , const char * id ,
@@ -223,8 +232,6 @@ int regulator_disable_deferred(struct regulator *regulator, int ms);
223
232
224
233
int __must_check regulator_bulk_get (struct device * dev , int num_consumers ,
225
234
struct regulator_bulk_data * consumers );
226
- int __must_check of_regulator_bulk_get_all (struct device * dev , struct device_node * np ,
227
- struct regulator_bulk_data * * consumers );
228
235
int __must_check devm_regulator_bulk_get (struct device * dev , int num_consumers ,
229
236
struct regulator_bulk_data * consumers );
230
237
void devm_regulator_bulk_put (struct regulator_bulk_data * consumers );
@@ -483,12 +490,6 @@ static inline int devm_regulator_bulk_get(struct device *dev, int num_consumers,
483
490
return 0 ;
484
491
}
485
492
486
- static inline int of_regulator_bulk_get_all (struct device * dev , struct device_node * np ,
487
- struct regulator_bulk_data * * consumers )
488
- {
489
- return 0 ;
490
- }
491
-
492
493
static inline int devm_regulator_bulk_get_const (
493
494
struct device * dev , int num_consumers ,
494
495
const struct regulator_bulk_data * in_consumers ,
0 commit comments