diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2010-08-11 11:53:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-08-11 15:15:56 +0200 |
commit | 7c56f5f6e3881eba98abf0026cadd4d16047906c (patch) | |
tree | a852e9ed819a6da5bfc92f49c98139c133a97b59 /commands/loadb.c | |
parent | 6937c9193518581d32ea79823a67b1bfb2d35ae1 (diff) | |
download | barebox-7c56f5f6e3881eba98abf0026cadd4d16047906c.tar.gz barebox-7c56f5f6e3881eba98abf0026cadd4d16047906c.tar.xz |
loadb: get console baudrate from class_dev not dev
With this fix its possible to run loadb -f /dev/ram0
again with the latest next patchstack. Without you will
run into data_abort. Tested with omap3530 beagleboard.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/loadb.c')
-rw-r--r-- | commands/loadb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/loadb.c b/commands/loadb.c index 437b60f8c5..acfb94fe08 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 = (int)simple_strtoul(dev_get_param(cdev->dev, "baudrate"), NULL, 10); + current_baudrate = (int)simple_strtoul(dev_get_param(&cdev->class_dev, "baudrate"), NULL, 10); /* Load Defaults */ if (load_baudrate == 0) |