[ARM] pxa/sharpsl_pm: zaurus c3000 aka spitz: fix resume
authorPavel Machek <pavel@ucw.cz>
Sun, 6 Sep 2009 05:28:40 +0000 (07:28 +0200)
committerEric Miao <eric.y.miao@gmail.com>
Mon, 7 Sep 2009 15:14:59 +0000 (23:14 +0800)
commit99f329a2ba3c2d07cc90ca9309babf27ddf98bff
treeb19a138d39652f61a283defe0b3fe82763e87773
parent422bef879e84104fee6dc68ded0e371dbeb5f88e
[ARM] pxa/sharpsl_pm: zaurus c3000 aka spitz: fix resume

sharpsl_pm.c code tries to read battery state very early during
resume, but those battery meters are connected on SPI and that's only
resumed way later.

Replace the check with simple checking of battery fatal signal, that
actually works at this stage.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Tested-by: Stanislav Brabec <utx@penguin.cz>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/sharpsl_pm.c