diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:02:01 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:02:01 +0200 |
commit | f1b8cfbd1d0c0a5254435f882cd4eaa5eac23ead (patch) | |
tree | 0f15f58d4594cc568bbae2172ec306d1773f8be1 /common/console.c | |
parent | 30528be5fca26decf1444b7b03f2ad50ac9b51b2 (diff) | |
download | barebox-f1b8cfbd1d0c0a5254435f882cd4eaa5eac23ead.tar.gz barebox-f1b8cfbd1d0c0a5254435f882cd4eaa5eac23ead.tar.xz |
svn_rev_525
make default behaviour of consoles configurable
Diffstat (limited to 'common/console.c')
-rw-r--r-- | common/console.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c index ca11a514e7..270c927fee 100644 --- a/common/console.c +++ b/common/console.c @@ -69,9 +69,13 @@ int console_register(struct console_device *newcdev) newcdev->active_param.name = "active"; newcdev->active_param.value = newcdev->active; dev_add_param(dev, &newcdev->active_param); +#ifdef CONFIG_CONSOLE_ACTIVATE_ALL console_std_set(dev, &newcdev->active_param, "ioe"); - +#endif if (!first_console) { +#ifdef CONFIG_CONSOLE_ACTIVATE_FIRST + console_std_set(dev, &newcdev->active_param, "ioe"); +#endif first_console = newcdev; return 0; } |