]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: UART: Remove context_save and move context restore to driver
authorGovindraj.R <govindraj.raja@ti.com>
Mon, 7 Nov 2011 13:26:12 +0000 (18:56 +0530)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Dec 2011 00:05:21 +0000 (16:05 -0800)
commit35e45765cb9f7b1325f08371de536aaadd9f35de
treec4ffcf089f95e8232bfff4ac8d7b242408d53057
parent60c7746e645aec645ef23afc114aa2841e4746ac
ARM: OMAP2+: UART: Remove context_save and move context restore to driver

Remove context save function from serial.c and move context restore
function to omap-serial. Remove all regs stored in omap_uart_state
for contex_save/restore, reg read write funcs used in context_save/restore,
io_addresses populated for read/write funcs.

Clock gating mechanism was done in serial.c and had no info on uart state
thus we needed context save and restore in serial.c
With runtime conversion and clock gating done within uart driver
context restore can be done from regs value available from uart_omap_port
structure.

Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> (for drivers/tty changes)
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/serial.c
drivers/tty/serial/omap-serial.c