mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
Revert "device property: Introduce device_for_each_child_node_scoped()"
This reverts commit 6fedf3dc30 which is
commit 365130fd47af6d4317aa16a407874b699ab8d8cb upstream.
It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.
Bug: 161946584
Change-Id: I5447b0c06ae8001e384a38d7fbf4c9becebd1dc5
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -117,11 +117,6 @@ struct fwnode_handle *device_get_next_child_node(const struct device *dev,
|
||||
for (child = device_get_next_child_node(dev, NULL); child; \
|
||||
child = device_get_next_child_node(dev, child))
|
||||
|
||||
#define device_for_each_child_node_scoped(dev, child) \
|
||||
for (struct fwnode_handle *child __free(fwnode_handle) = \
|
||||
device_get_next_child_node(dev, NULL); \
|
||||
child; child = device_get_next_child_node(dev, child))
|
||||
|
||||
struct fwnode_handle *fwnode_get_named_child_node(const struct fwnode_handle *fwnode,
|
||||
const char *childname);
|
||||
struct fwnode_handle *device_get_named_child_node(const struct device *dev,
|
||||
|
||||
Reference in New Issue
Block a user