@@ -294,6 +294,8 @@ extern struct device_node *of_get_next_child(const struct device_node *node,
294
294
struct device_node * prev );
295
295
extern struct device_node * of_get_next_available_child (
296
296
const struct device_node * node , struct device_node * prev );
297
+ extern struct device_node * of_get_next_reserved_child (
298
+ const struct device_node * node , struct device_node * prev );
297
299
298
300
extern struct device_node * of_get_compatible_child (const struct device_node * parent ,
299
301
const char * compatible );
@@ -541,6 +543,12 @@ static inline struct device_node *of_get_next_available_child(
541
543
return NULL ;
542
544
}
543
545
546
+ static inline struct device_node * of_get_next_reserved_child (
547
+ const struct device_node * node , struct device_node * prev )
548
+ {
549
+ return NULL ;
550
+ }
551
+
544
552
static inline struct device_node * of_find_node_with_property (
545
553
struct device_node * from , const char * prop_name )
546
554
{
@@ -1431,6 +1439,9 @@ static inline int of_property_read_s32(const struct device_node *np,
1431
1439
#define for_each_available_child_of_node (parent , child ) \
1432
1440
for (child = of_get_next_available_child(parent, NULL); child != NULL; \
1433
1441
child = of_get_next_available_child(parent, child))
1442
+ #define for_each_reserved_child_of_node (parent , child ) \
1443
+ for (child = of_get_next_reserved_child(parent, NULL); child != NULL; \
1444
+ child = of_get_next_reserved_child(parent, child))
1434
1445
1435
1446
#define for_each_of_cpu_node (cpu ) \
1436
1447
for (cpu = of_get_next_cpu_node(NULL); cpu != NULL; \
0 commit comments