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:
parent
334fe1dc8a
commit
7a1f70e70a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue