]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: realview: hide unused 'pmu_device' object
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Feb 2016 13:35:58 +0000 (14:35 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Apr 2016 08:58:47 +0000 (10:58 +0200)
The pmu_device is only accessed when CACHE_L2X0 is enabled,
and we get a warning otherwise:

mach-realview/realview_pbx.c:274:31: error: 'pmu_device' defined but not used [-Werror=unused-variable]

This adds another #ifdef for it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-realview/realview_pbx.c

index b9f0757787ac345c8030f83bb7217c31d153b13b..be1cec5fe3adfa62e98d9bcfc186a2f0e566b7ea 100644 (file)
@@ -248,6 +248,7 @@ static struct resource realview_pbx_isp1761_resources[] = {
        },
 };
 
+#ifdef CONFIG_CACHE_L2X0
 static struct resource pmu_resources[] = {
        [0] = {
                .start          = IRQ_PBX_PMU_CPU0,
@@ -277,6 +278,7 @@ static struct platform_device pmu_device = {
        .num_resources          = ARRAY_SIZE(pmu_resources),
        .resource               = pmu_resources,
 };
+#endif
 
 static void __init gic_init_irq(void)
 {