9
0
Fork 0

fix command loadb

which was broken after commit c3789cd49b

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Eric Bénard 2010-06-24 11:49:55 +02:00 committed by Sascha Hauer
parent 334fe1dc8a
commit 7a1f70e70a
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ static int do_load_serial_bin(struct command *cmdtp, int argc, char *argv[])
printf("%s:No console device with STDIN and STDOUT\n", argv[0]);
return -ENODEV;
}
current_baudrate = simple_strtoul(cdev->baudrate_string, NULL, 10);
current_baudrate = (int)simple_strtoul(dev_get_param(cdev->dev, "baudrate"), NULL, 10);
/* Load Defaults */
if (load_baudrate == 0)