summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/patches/barebox-2017.08.0/0004-of-base-add-funtion-to-copy-a-device-tree-node.patch
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2017-09-06 10:40:11 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2017-10-11 15:16:43 +0200
commit2532fa8e1faf66f5ee0dc52a5deafaba74a96562 (patch)
treef25780f1ab26efcf5a379a3608bfafe34bc0ea9c /configs/platform-v7a/patches/barebox-2017.08.0/0004-of-base-add-funtion-to-copy-a-device-tree-node.patch
parent71edf02b1f3e89582e268420e66c401040a197ca (diff)
downloadDistroKit-2532fa8e1faf66f5ee0dc52a5deafaba74a96562.tar.gz
DistroKit-2532fa8e1faf66f5ee0dc52a5deafaba74a96562.tar.xz
platform-v7a: barebox: use reworked vexpress patches
The vexpress patch series has recently been reworked. Use it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/patches/barebox-2017.08.0/0004-of-base-add-funtion-to-copy-a-device-tree-node.patch')
-rw-r--r--configs/platform-v7a/patches/barebox-2017.08.0/0004-of-base-add-funtion-to-copy-a-device-tree-node.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/configs/platform-v7a/patches/barebox-2017.08.0/0004-of-base-add-funtion-to-copy-a-device-tree-node.patch b/configs/platform-v7a/patches/barebox-2017.08.0/0004-of-base-add-funtion-to-copy-a-device-tree-node.patch
deleted file mode 100644
index af6cc6c..0000000
--- a/configs/platform-v7a/patches/barebox-2017.08.0/0004-of-base-add-funtion-to-copy-a-device-tree-node.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-Date: Tue, 13 Sep 2016 21:17:12 +0200
-Subject: [PATCH] of: base: add funtion to copy a device tree node
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- drivers/of/base.c | 16 ++++++++++++++++
- include/of.h | 2 ++
- 2 files changed, 18 insertions(+)
-
-diff --git a/drivers/of/base.c b/drivers/of/base.c
-index ea330d131012..b6e90f2adb09 100644
---- a/drivers/of/base.c
-+++ b/drivers/of/base.c
-@@ -1965,6 +1965,22 @@ out:
- return dn;
- }
-
-+struct device_node *of_copy_node(struct device_node *parent, const struct device_node *other)
-+{
-+ struct device_node *np, *child;
-+ struct property *pp;
-+
-+ np = of_new_node(parent, other->name);
-+
-+ list_for_each_entry(pp, &other->properties, list)
-+ of_new_property(np, pp->name, pp->value, pp->length);
-+
-+ for_each_child_of_node(other, child)
-+ of_copy_node(np, child);
-+
-+ return np;
-+}
-+
- void of_delete_node(struct device_node *node)
- {
- struct device_node *n, *nt;
-diff --git a/include/of.h b/include/of.h
-index 0ba73f197f28..c1136708ce6c 100644
---- a/include/of.h
-+++ b/include/of.h
-@@ -144,6 +144,8 @@ extern struct device_node *of_new_node(struct device_node *parent,
- const char *name);
- extern struct device_node *of_create_node(struct device_node *root,
- const char *path);
-+extern struct device_node *of_copy_node(struct device_node *parent,
-+ const struct device_node *other);
- extern void of_delete_node(struct device_node *node);
-
- extern int of_machine_is_compatible(const char *compat);