summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-08-15 09:36:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-15 09:48:03 +0200
commitad140020b8229c14c9b18fb0dd0c5af3373cdf56 (patch)
tree52f15d17b4a3e42c4f7e358236ed8ce49468a403 /common/console.c
parent8fddb2edf6b862afbf4a663df179e3aabd932e39 (diff)
downloadbarebox-ad140020b8229c14c9b18fb0dd0c5af3373cdf56.tar.gz
barebox-ad140020b8229c14c9b18fb0dd0c5af3373cdf56.tar.xz
console: make console device a child of the hardware device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index d60e57fc42..1f6ee93b4b 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) {