From 7a1f70e70a8ef9cece22207f9f540624b4d982da Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Thu, 24 Jun 2010 11:49:55 +0200 Subject: fix command loadb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit which was broken after commit c3789cd49b43ec1c414ba1b0e9f48e8ccc19f8e1 Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer --- commands/loadb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/loadb.c b/commands/loadb.c index 6740ef4a48..437b60f8c5 100644 --- a/commands/loadb.c +++ b/commands/loadb.c @@ -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) -- cgit v1.2.3