[PATCH] fixup! of: base: register DT root as device

Oleksij Rempel o.rempel at pengutronix.de
Mon Aug 17 06:12:38 EDT 2020


Move new virtual device out of *.of name space, to avoid possible
collisions.

Signed-off-by: Oleksij Rempel <o.rempel at pengutronix.de>
---
 drivers/of/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index 9e49158e61..222d72947e 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -2144,7 +2144,7 @@ static void of_platform_device_create_root(struct device_node *np)
 	dev = xzalloc(sizeof(*dev));
 	dev->id = DEVICE_ID_SINGLE;
 	dev->device_node = np;
-	dev_set_name(dev, "machine.of");
+	dev_set_name(dev, "machine");
 
 	ret = platform_device_register(dev);
 	if (ret)
-- 
2.28.0




More information about the barebox mailing list