summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c
index a67f169b4..74ccfcfc3 100644
--- a/common/console.c
+++ b/common/console.c
@@ -256,7 +256,7 @@ int console_register(struct console_device *newcdev)
ret = newcdev->setbrg(newcdev, CONFIG_BAUDRATE);
if (ret)
return ret;
- newcdev->baudrate = CONFIG_BAUDRATE;
+ newcdev->baudrate_param = newcdev->baudrate = CONFIG_BAUDRATE;
dev_add_param_int(dev, "baudrate", console_baudrate_set,
NULL, &newcdev->baudrate_param, "%u", newcdev);
}