aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorGaurav Minocha <gaurav.minocha.os@gmail.com>2014-07-16 23:09:39 -0700
committerMark Brown <broonie@kernel.org>2015-02-20 23:41:16 +0900
commit9ae47ebcf425e1bfedfb32f55983439c9ee63076 (patch)
tree333069f4ac579a6494bb4836c8833af1f8943e3d /arch/arm
parentcf77cbddf4794311ca069c5e67428434a86a8021 (diff)
Adding selftest testdata dynamically into live tree
This patch attaches selftest's device tree data (required by /drivers/of/selftest.c) dynamically into live device tree. First, it links selftest device tree data into the kernel image and then iterates over all the nodes and attaches them into the live tree. Once the testcases are complete, it removes the data attached. This patch will remove the manual process of addition and removal of selftest device tree data into the machine's dts file. Tested successfully with current selftest's testcases. Signed-off-by: Gaurav Minocha <gaurav.minocha.os@gmail.com> [glikely: Removed ability to build as a module and fixed no-devicetree bug] Signed-off-by: Grant Likely <grant.likely@linaro.org> (cherry picked from commit ae9304c9d3111759fed5946272be3b13ba41f7e3) Signed-off-by: Mark Brown <broonie@kernel.org> Conflicts: drivers/of/testcase-data/testcases.dts
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/versatile-pb.dts2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/versatile-pb.dts b/arch/arm/boot/dts/versatile-pb.dts
index 65f657711323..8d39677b7d4c 100644
--- a/arch/arm/boot/dts/versatile-pb.dts
+++ b/arch/arm/boot/dts/versatile-pb.dts
@@ -46,5 +46,3 @@
};
};
};
-
-#include <testcases.dtsi>