[PATCH 4/7] console: make console device a child of the hardware device

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

 



Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
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