summaryrefslogtreecommitdiffstats
path: root/drivers/of/unittest.c
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2015-11-05 00:12:49 +1100
committerRob Herring <robh@kernel.org>2016-01-13 16:10:37 -0600
commit183223770ae8625df8966ed15811d1b3ee8720aa (patch)
treea7f994ffd55b80d765ac01283d7f5412fdd5d383 /drivers/of/unittest.c
parentdc17340e3041511850ff6ec7299551284d6c0eb1 (diff)
downloadlinux-183223770ae8625df8966ed15811d1b3ee8720aa.tar.gz
linux-183223770ae8625df8966ed15811d1b3ee8720aa.tar.bz2
linux-183223770ae8625df8966ed15811d1b3ee8720aa.zip
drivers/of: Export OF changeset functions
The PowerNV PCI hotplug driver is going to use the OF changeset to manage the changed device sub-tree. This exports those OF changeset functions for that. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Rob Herring <robh@kernel.org>
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)
unittest(!of_changeset_add_property(&chgset, parent, ppadd), "fail add prop\n");
unittest(!of_changeset_update_property(&chgset, parent, ppupdate), "fail update prop\n");
unittest(!of_changeset_remove_property(&chgset, parent, ppremove), "fail remove prop\n");
- mutex_lock(&of_mutex);
unittest(!of_changeset_apply(&chgset), "apply failed\n");
- mutex_unlock(&of_mutex);
/* Make sure node names are constructed correctly */
unittest((np = of_find_node_by_path("/testcase-data/changeset/n2/n21")),
"'%s' not added\n", n21->full_name);
of_node_put(np);
- mutex_lock(&of_mutex);
unittest(!of_changeset_revert(&chgset), "revert failed\n");
- mutex_unlock(&of_mutex);
of_changeset_destroy(&chgset);
#endif