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)
commit7fbbe38aa11816ef15844238e8eb3164b887d265
tree58e6702758277be134f4559dbd52c6b27c84f306
parentfccc2b3675371e4077d7aa7f23d116e97dcdcd07
ARM: realview: hide unused 'pmu_device' object

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