diff options
author | Rob Herring <robh@kernel.org> | 2015-02-11 22:28:45 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-02-11 22:28:45 -0500 |
commit | 3c3c8e3618b018aee1dfd42343a74f3ab5ddf23c (patch) | |
tree | 7a2053d24f8c10e4621b18df13130a9bcf02a4a3 | |
parent | ffe24b28ebff32da00e53f9d18b289b8bf233373 (diff) | |
parent | fca8ba4ee24d17f8845ed1c8edcc3fd81c4650c2 (diff) |
Merge remote-tracking branch 'grant/devicetree/next' into for-next
-rw-r--r-- | drivers/of/unittest.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index e86213b0e7e5..0cf9a236d438 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c | |||
@@ -30,11 +30,6 @@ static struct selftest_results { | |||
30 | int failed; | 30 | int failed; |
31 | } selftest_results; | 31 | } selftest_results; |
32 | 32 | ||
33 | #define NO_OF_NODES 3 | ||
34 | static struct device_node *nodes[NO_OF_NODES]; | ||
35 | static int last_node_index; | ||
36 | static bool selftest_live_tree; | ||
37 | |||
38 | #define selftest(result, fmt, ...) ({ \ | 33 | #define selftest(result, fmt, ...) ({ \ |
39 | bool failed = !(result); \ | 34 | bool failed = !(result); \ |
40 | if (failed) { \ | 35 | if (failed) { \ |
@@ -833,13 +828,6 @@ static int attach_node_and_children(struct device_node *np) | |||
833 | return 0; | 828 | return 0; |
834 | } | 829 | } |
835 | 830 | ||
836 | /* Children of the root need to be remembered for removal */ | ||
837 | if (np->parent == of_root) { | ||
838 | if (WARN_ON(last_node_index >= NO_OF_NODES)) | ||
839 | return -EINVAL; | ||
840 | nodes[last_node_index++] = np; | ||
841 | } | ||
842 | |||
843 | child = np->child; | 831 | child = np->child; |
844 | np->child = NULL; | 832 | np->child = NULL; |
845 | 833 | ||
@@ -902,10 +890,7 @@ static int __init selftest_data_add(void) | |||
902 | } | 890 | } |
903 | 891 | ||
904 | if (!of_root) { | 892 | if (!of_root) { |
905 | /* enabling flag for removing nodes */ | ||
906 | selftest_live_tree = true; | ||
907 | of_root = selftest_data_node; | 893 | of_root = selftest_data_node; |
908 | |||
909 | for_each_of_allnodes(np) | 894 | for_each_of_allnodes(np) |
910 | __of_attach_node_sysfs(np); | 895 | __of_attach_node_sysfs(np); |
911 | of_aliases = of_find_node_by_path("/aliases"); | 896 | of_aliases = of_find_node_by_path("/aliases"); |