summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-08 14:26:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:22:14 +0200
commit7cf221db7c4483458c39b4e7f030f7f584b1ae9e (patch)
tree0e16956b4068a27628060a0368bf1990a76cad71 /commands
parent230c22252a11c2e8a2cf62fd8a141bb18bc213cb (diff)
downloadbarebox-7cf221db7c4483458c39b4e7f030f7f584b1ae9e.tar.gz
barebox-7cf221db7c4483458c39b4e7f030f7f584b1ae9e.tar.xz
loadb: use console_get_baudrate
No need to fiddle with device parameters anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/loadb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/loadb.c b/commands/loadb.c
index 66934c4da..8294f39c1 100644
--- a/commands/loadb.c
+++ b/commands/loadb.c
@@ -635,7 +635,7 @@ static int do_load_serial_bin(int argc, char *argv[])
printf("%s:No console device with STDIN and STDOUT\n", argv[0]);
return -ENODEV;
}
- current_baudrate = (int)simple_strtoul(dev_get_param(&cdev->class_dev, "baudrate"), NULL, 10);
+ current_baudrate = console_get_baudrate(cdev);
/* Load Defaults */
if (load_baudrate == 0)