Commit a7deea691c5e85bdf8bc456dd41d5aadc1e49450
Committed by
Tom Rini
1 parent
b3ef791ceb
Exists in
v2017.01-smarct4x
and in
37 other branches
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 <vikas.manocha@st.com> Acked-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/serial/serial_pl01x.c
... | ... | @@ -201,7 +201,7 @@ |
201 | 201 | base_regs = (struct pl01x_regs *)port[CONFIG_CONS_INDEX]; |
202 | 202 | |
203 | 203 | pl01x_generic_serial_init(base_regs, pl01x_type); |
204 | - pl01x_generic_setbrg(base_regs, TYPE_PL010, clock, baudrate); | |
204 | + pl01x_generic_setbrg(base_regs, pl01x_type, clock, baudrate); | |
205 | 205 | } |
206 | 206 | |
207 | 207 | /* |