From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UllWo-0002Ls-9S for barebox@lists.infradead.org; Sun, 09 Jun 2013 19:43:51 +0000 From: Steffen Trumtrar Date: Sun, 9 Jun 2013 21:43:13 +0200 Message-Id: <1370806993-28524-1-git-send-email-s.trumtrar@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] console: fix new console registration To: barebox@lists.infradead.org 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 --- 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