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

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

 



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

Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux