From: Vikas Manocha Date: Fri, 21 Nov 2014 18:34:19 +0000 (-0800) Subject: serial: pl01x: pass pl01x_type to set baudrate X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a7deea691c5e85bdf8bc456dd41d5aadc1e49450;p=u-boot.git serial: pl01x: pass pl01x_type to set baudrate Although we were checking the pl01x type, seems like PL010 type was being passed by mistake. Signed-off-by: Vikas Manocha Acked-by: Simon Glass --- diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 38dda91021..1860289ce4 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -201,7 +201,7 @@ static void pl01x_serial_init_baud(int baudrate) base_regs = (struct pl01x_regs *)port[CONFIG_CONS_INDEX]; pl01x_generic_serial_init(base_regs, pl01x_type); - pl01x_generic_setbrg(base_regs, TYPE_PL010, clock, baudrate); + pl01x_generic_setbrg(base_regs, pl01x_type, clock, baudrate); } /*