[PATCH 4/5] tests: Fix overlay tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Fix tests broken by introduction of fdt_overlay_prepare()

Signed-off-by: Ayush Singh <ayush@xxxxxxxxxxxxxxx>
---
 tests/overlay.c           | 1 +
 tests/overlay_bad_fixup.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/overlay.c b/tests/overlay.c
index 2d27918a336939743c4ef6bd0c9b93d1e9dfc8fb..9d387aba8f85cf1b5a3d397613708b5c82655b68 100644
--- a/tests/overlay.c
+++ b/tests/overlay.c
@@ -203,6 +203,7 @@ int main(int argc, char *argv[])
 	fdt_overlay = open_dt(argv[2]);
 
 	/* Apply the overlay */
+	CHECK(fdt_overlay_prepare(fdt_base, fdt_overlay));
 	CHECK(fdt_overlay_apply(fdt_base, fdt_overlay));
 
 	fdt_overlay_change_int_property(fdt_base);
diff --git a/tests/overlay_bad_fixup.c b/tests/overlay_bad_fixup.c
index 029bc7982d328b0dd538dd30f066ae414b989232..2f7471a60d926a959ac5dfb66ef02712259e1a4d 100644
--- a/tests/overlay_bad_fixup.c
+++ b/tests/overlay_bad_fixup.c
@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
 	fdt_overlay = open_dt(argv[2]);
 
 	/* Apply the overlay */
-	CHECK(fdt_overlay_apply(fdt_base, fdt_overlay), -FDT_ERR_BADOVERLAY);
+	CHECK(fdt_overlay_prepare(fdt_base, fdt_overlay), -FDT_ERR_BADOVERLAY);
 
 	PASS();
 }

-- 
2.47.0





[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux