* [PATCH] fixup! of: base: register DT root as device
@ 2020-08-17 10:12 Oleksij Rempel
0 siblings, 0 replies; only message in thread
From: Oleksij Rempel @ 2020-08-17 10:12 UTC (permalink / raw)
To: barebox; +Cc: Oleksij Rempel
Move new virtual device out of *.of name space, to avoid possible
collisions.
Signed-off-by: Oleksij Rempel <o.rempel@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-17 10:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17 10:12 [PATCH] fixup! of: base: register DT root as device Oleksij Rempel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox