staging: omap-thermal: fix context restore function
authorRadhesh Fadnis <radhesh.fadnis@ti.com>
Tue, 13 Nov 2012 18:10:04 +0000 (14:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 23:08:31 +0000 (15:08 -0800)
commitb87ea759a4cc2cae359288f003aae6a027330860
treee76f3ca584ae6ae0976431e3e539a63bd6b80d68
parent71e303f5b87e821a702e5a17b26f61ab329737e4
staging: omap-thermal: fix context restore function

In the context restore function, if the context is lost or
not is being checked by the contents of the counter register.
But this is logic hold good as long as counter reset value is
zero, if the reset value is non-zero then above logic doesn't
hold good. Hence removed checking of the register value and
restoring the context.

Signed-off-by: Radhesh Fadnis <radhesh.fadnis@ti.com>
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omap-thermal/omap-bandgap.c