[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220623105044.152832-3-clement.leger@bootlin.com>
Date: Thu, 23 Jun 2022 12:50:44 +0200
From: Clément Léger <clement.leger@...tlin.com>
To: Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>
Cc: Clément Léger <clement.leger@...tlin.com>,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
Lizhi Hou <lizhi.hou@...inx.com>,
Allan Nielsen <allan.nielsen@...rochip.com>,
Horatiu Vultur <horatiu.vultur@...rochip.com>,
Steen Hegelund <steen.hegelund@...rochip.com>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>
Subject: [PATCH v1 2/2] of: unittest: remove check for of_root
Now that of_root node is always populated in of_core_init(), remove
this manual tree creation and assume that the root node always exists.
Signed-off-by: Clément Léger <clement.leger@...tlin.com>
---
drivers/of/unittest.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 7f6bba18c515..a787d212c0f6 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -1469,16 +1469,6 @@ static int __init unittest_data_add(void)
return -EINVAL;
}
- if (!of_root) {
- of_root = unittest_data_node;
- for_each_of_allnodes(np)
- __of_attach_node_sysfs(np);
- of_aliases = of_find_node_by_path("/aliases");
- of_chosen = of_find_node_by_path("/chosen");
- of_overlay_mutex_unlock();
- return 0;
- }
-
EXPECT_BEGIN(KERN_INFO,
"Duplicate name in testcase-data, renamed to \"duplicate-name#1\"");
--
2.36.1
Powered by blists - more mailing lists