[ARM] pxa: enable check_scoop_reg() only if CONFIG_PM is set.
authorStefan Schmidt <stefan@datenfreihafen.org>
Tue, 16 Feb 2010 21:41:52 +0000 (22:41 +0100)
committerEric Miao <eric.y.miao@gmail.com>
Mon, 1 Mar 2010 23:40:52 +0000 (07:40 +0800)
commitcfab57e0e44631b1369e05efa54031b993511c2f
tree3c3ab1d889748c11bf212fba3fa5656c901deade
parent1f3b536be7bfb3930cf7dc6d995d82877f25d6cf
[ARM] pxa: enable check_scoop_reg() only if CONFIG_PM is set.

This function gets only called from scoop_suspend() and scoop_resume() which are
only built in if we have CONFIG_PM set. Make it the same for check_scoop_reg().

This fixes the following warning:
arch/arm/common/scoop.c:143: warning: ‘check_scoop_reg’ defined but not used

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/common/scoop.c