Skip to content

Commit

Permalink
serial: pl01x: pass pl01x_type to set baudrate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vikasmanocha authored and trini committed Dec 8, 2014
1 parent b3ef791 commit a7deea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/serial_pl01x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit a7deea6

Please sign in to comment.