tty: amba-pl011: fix earlycon register offsets
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 4 Jan 2016 21:37:41 +0000 (15:37 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2016 05:02:45 +0000 (21:02 -0800)
commitcdf091ca2c3d6875e5f0fca28de4a6ca2f5273e6
tree4d7783757d062607d747ecf4305a0fd675285d9c
parent462a1196a578fc6f52c26427070a75e044bbf9b1
tty: amba-pl011: fix earlycon register offsets

The REG_x macros are indices into a table, not register offsets.  Since earlycon
does not have access to the vendor data, we can currently only support standard
ARM PL011 devices.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Huang Shijie <shijie.huang@arm.com>
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c