diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-07 00:15:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-09 20:58:27 +0200 |
commit | 3510a4b0f596e87c0e810abd8773eb09404bc9ac (patch) | |
tree | b2060de3a194aab7d47a5843b2a4a2893187fd5b /common | |
parent | b3dbaa9a60bb9a2bce9db50941450a6fd1dc6e19 (diff) | |
download | barebox-3510a4b0f596e87c0e810abd8773eb09404bc9ac.tar.gz barebox-3510a4b0f596e87c0e810abd8773eb09404bc9ac.tar.xz |
console/of: evaluate linux,stdout-path property
When a linux,stdout-path property is given in the devicetree
activate the corresponding console.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/console.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c index 069e66e4bc..b4b3a9997f 100644 --- a/common/console.c +++ b/common/console.c @@ -164,6 +164,9 @@ int console_register(struct console_device *newcdev) activate = 1; } + if (newcdev->dev && of_device_is_stdout_path(newcdev->dev)) + activate = 1; + list_add_tail(&newcdev->list, &console_list); if (activate) |