ARM: imx: avic: Move avic_saved_mask_reg under CONFIG_PM
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 5 Feb 2013 17:36:16 +0000 (15:36 -0200)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 2 Apr 2013 12:43:07 +0000 (20:43 +0800)
commit5fe839d997f955e9e62b70d798d3faaa19620383
tree466fff5318341b5e60b0d97f030536c4227d4d37
parent180cb7d6ab8cb2a48f11fe2bdde85aa3ab359c3a
ARM: imx: avic: Move avic_saved_mask_reg under CONFIG_PM

When building a kernel with CONFIG_PM undefined, the following warning happens:

arch/arm/mach-imx/avic.c:57:12: warning: 'avic_saved_mask_reg' defined but not used [-Wunused-variable]

Move avic_saved_mask_reg definition inside the '#ifdef CONFIG_PM' block to
avoid the warning.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/avic.c