diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-28 13:21:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-28 13:21:09 +0000 |
commit | f01fd8e50b189be59e546e9a9dcb2db71e98682f (patch) | |
tree | bacf0b240c515c0e4f709fdc2fcb3b60c76d990b /target/linux/brcm63xx/patches-3.14/001-of-Create-unlocked-version-of-for_each_child_of_node.patch | |
parent | 35996331c3f42e69eace5b57fa5e2e965c026a12 (diff) | |
download | upstream-f01fd8e50b189be59e546e9a9dcb2db71e98682f.tar.gz upstream-f01fd8e50b189be59e546e9a9dcb2db71e98682f.tar.bz2 upstream-f01fd8e50b189be59e546e9a9dcb2db71e98682f.zip |
brcm63xx: remove linux 3.14 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45089 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-3.14/001-of-Create-unlocked-version-of-for_each_child_of_node.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.14/001-of-Create-unlocked-version-of-for_each_child_of_node.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/brcm63xx/patches-3.14/001-of-Create-unlocked-version-of-for_each_child_of_node.patch b/target/linux/brcm63xx/patches-3.14/001-of-Create-unlocked-version-of-for_each_child_of_node.patch deleted file mode 100644 index 13957890b9..0000000000 --- a/target/linux/brcm63xx/patches-3.14/001-of-Create-unlocked-version-of-for_each_child_of_node.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 0d0e02d605c5696a5076510f564fefe659127aa4 Mon Sep 17 00:00:00 2001 -From: Grant Likely <grant.likely@linaro.org> -Date: Thu, 22 May 2014 01:04:17 +0900 -Subject: [PATCH] of: Create unlocked version of for_each_child_of_node() - -When iterating over nodes, sometimes it needs to be done when the DT -lock is already held. This patch makes an unlocked version of the -for_each_child_of_node() macro. - -Signed-off-by: Grant Likely <grant.likely@linaro.org> ---- - drivers/of/base.c | 22 +++++++++++++++++----- - 1 file changed, 17 insertions(+), 5 deletions(-) - ---- a/drivers/of/base.c -+++ b/drivers/of/base.c -@@ -545,6 +545,22 @@ struct device_node *of_get_next_parent(s - } - EXPORT_SYMBOL(of_get_next_parent); - -+static struct device_node *__of_get_next_child(const struct device_node *node, -+ struct device_node *prev) -+{ -+ struct device_node *next; -+ -+ next = prev ? prev->sibling : node->child; -+ for (; next; next = next->sibling) -+ if (of_node_get(next)) -+ break; -+ of_node_put(prev); -+ return next; -+} -+#define __for_each_child_of_node(parent, child) \ -+ for (child = __of_get_next_child(parent, NULL); child != NULL; \ -+ child = __of_get_next_child(parent, child)) -+ - /** - * of_get_next_child - Iterate a node childs - * @node: parent node -@@ -560,11 +576,7 @@ struct device_node *of_get_next_child(co - unsigned long flags; - - raw_spin_lock_irqsave(&devtree_lock, flags); -- next = prev ? prev->sibling : node->child; -- for (; next; next = next->sibling) -- if (of_node_get(next)) -- break; -- of_node_put(prev); -+ next = __of_get_next_child(node, prev); - raw_spin_unlock_irqrestore(&devtree_lock, flags); - return next; - } |