aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/unittest.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/unittest.c')
-rw-r--r--drivers/of/unittest.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index bbff09dee1cf..979b6e415cea 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -530,18 +530,14 @@ static void __init of_unittest_changeset(void)
530 unittest(!of_changeset_add_property(&chgset, parent, ppadd), "fail add prop\n"); 530 unittest(!of_changeset_add_property(&chgset, parent, ppadd), "fail add prop\n");
531 unittest(!of_changeset_update_property(&chgset, parent, ppupdate), "fail update prop\n"); 531 unittest(!of_changeset_update_property(&chgset, parent, ppupdate), "fail update prop\n");
532 unittest(!of_changeset_remove_property(&chgset, parent, ppremove), "fail remove prop\n"); 532 unittest(!of_changeset_remove_property(&chgset, parent, ppremove), "fail remove prop\n");
533 mutex_lock(&of_mutex);
534 unittest(!of_changeset_apply(&chgset), "apply failed\n"); 533 unittest(!of_changeset_apply(&chgset), "apply failed\n");
535 mutex_unlock(&of_mutex);
536 534
537 /* Make sure node names are constructed correctly */ 535 /* Make sure node names are constructed correctly */
538 unittest((np = of_find_node_by_path("/testcase-data/changeset/n2/n21")), 536 unittest((np = of_find_node_by_path("/testcase-data/changeset/n2/n21")),
539 "'%s' not added\n", n21->full_name); 537 "'%s' not added\n", n21->full_name);
540 of_node_put(np); 538 of_node_put(np);
541 539
542 mutex_lock(&of_mutex);
543 unittest(!of_changeset_revert(&chgset), "revert failed\n"); 540 unittest(!of_changeset_revert(&chgset), "revert failed\n");
544 mutex_unlock(&of_mutex);
545 541
546 of_changeset_destroy(&chgset); 542 of_changeset_destroy(&chgset);
547#endif 543#endif