[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)
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>

No differences found