serial: omap: Make context_loss_cnt signed
authorShubhrajyoti D <shubhrajyoti@ti.com>
Wed, 3 Oct 2012 11:54:36 +0000 (17:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 18:29:10 +0000 (11:29 -0700)
commit39aee51d439d8ad7339ee49dc3ccaf91ca61d8f0
treebecd86cafee1154112430e35e647a89499c19d6d
parent57cf50acbf5b153f331a966ecc08836324c1cd8d
serial: omap: Make context_loss_cnt signed

get_context_loss_count returns an int however it is stored in
unsigned integer context_loss_cnt . This patch tries to make
context_loss_cnt int. So that in case of errors the value
(which may be negative) is not interpreted wrongly.

In serial_omap_runtime_resume in case of errors returned by
get_context_loss_count print a warning and do a restore.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c