diff options
Diffstat (limited to 'include/linux/of.h')
| -rw-r--r-- | include/linux/of.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 276c546980d8..70c64ba17fa5 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
| @@ -377,8 +377,13 @@ static inline bool of_have_populated_dt(void) | |||
| 377 | return false; | 377 | return false; |
| 378 | } | 378 | } |
| 379 | 379 | ||
| 380 | /* Kill an unused variable warning on a device_node pointer */ | ||
| 381 | static inline void __of_use_dn(const struct device_node *np) | ||
| 382 | { | ||
| 383 | } | ||
| 384 | |||
| 380 | #define for_each_child_of_node(parent, child) \ | 385 | #define for_each_child_of_node(parent, child) \ |
| 381 | while (0) | 386 | while (__of_use_dn(parent), __of_use_dn(child), 0) |
| 382 | 387 | ||
| 383 | #define for_each_available_child_of_node(parent, child) \ | 388 | #define for_each_available_child_of_node(parent, child) \ |
| 384 | while (0) | 389 | while (0) |
