mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] console: fix new console registration
@ 2013-06-09 19:43 Steffen Trumtrar
  2013-06-10 12:59 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Trumtrar @ 2013-06-09 19:43 UTC (permalink / raw)
  To: barebox; +Cc: Steffen Trumtrar

The console_register-function gets the baudrate from a kconfig parameter and
sets the console accordingly, if a setbrg function is registered.
Add the missing call to setbrg on the newly registered console to actually
use the baudrate setting.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 common/console.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/console.c b/common/console.c
index a0a06f6..abf5322 100644
--- a/common/console.c
+++ b/common/console.c
@@ -147,6 +147,7 @@ int console_register(struct console_device *newcdev)
 		newcdev->baudrate = CONFIG_BAUDRATE;
 		dev_add_param_int(dev, "baudrate", console_baudrate_set,
 			NULL, &newcdev->baudrate, "%u", newcdev);
+		newcdev->setbrg(newcdev, newcdev->baudrate);
 	}
 
 	dev_add_param(dev, "active", console_std_set, NULL, 0);
-- 
1.8.2.rc2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-10 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-09 19:43 [PATCH] console: fix new console registration Steffen Trumtrar
2013-06-10 12:59 ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox