[PATCH 4/7] console: make console device a child of the hardware device
Sascha Hauer
s.hauer at pengutronix.de
Mon Aug 15 04:46:29 EDT 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
common/console.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/console.c b/common/console.c
index d60e57f..1f6ee93 100644
--- a/common/console.c
+++ b/common/console.c
@@ -132,6 +132,8 @@ int console_register(struct console_device *newcdev)
dev->id = -1;
strcpy(dev->name, "cs");
dev->type_data = newcdev;
+ if (newcdev->dev)
+ dev_add_child(newcdev->dev, dev);
register_device(dev);
if (newcdev->setbrg) {
--
1.7.5.4
More information about the barebox
mailing list