Skip to content

Commit

Permalink
ARM: imx: avic: Move avic_saved_mask_reg under CONFIG_PM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Shawn Guo committed Apr 2, 2013
1 parent 180cb7d commit 5fe839d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-imx/avic.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
void __iomem *avic_base;
static struct irq_domain *domain;

static u32 avic_saved_mask_reg[2];

#ifdef CONFIG_MXC_IRQ_PRIOR
static int avic_irq_set_priority(unsigned char irq, unsigned char prio)
{
Expand Down Expand Up @@ -113,6 +111,8 @@ static struct mxc_extra_irq avic_extra_irq = {
};

#ifdef CONFIG_PM
static u32 avic_saved_mask_reg[2];

static void avic_irq_suspend(struct irq_data *d)
{
struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
Expand Down

0 comments on commit 5fe839d

Please sign in to comment.