diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-29 15:06:26 +0100 |
---|---|---|
committer | Robert Jarzmik <robert.jarzmik@free.fr> | 2016-02-01 21:44:08 +0100 |
commit | 289873476efd0aeda64e84075285f04b0d1e8a89 (patch) | |
tree | 454cdd27d80b6b7c7ee15e34f48356d1d34f4246 /arch | |
parent | ea7743e2719d34eacb4cb206ae227120029d06c6 (diff) |
ARM: pxa: mark spitz_card_pwr_ctrl as __maybe_unused
This function is only used when CONFIG_PCMCIA is enabled, otherwise
we get a harmless warning:
arch/arm/mach-pxa/spitz.c:204:13: warning: 'spitz_card_pwr_ctrl' defined but not used [-Wunused-function]
Marking it as __maybe_unused keeps the logic simple and avoids the
warning on randconfig builds.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 825f903ab77e..d9578bc49fdc 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c @@ -201,7 +201,7 @@ static void __init spitz_scoop_init(void) } /* Power control is shared with between one of the CF slots and SD */ -static void spitz_card_pwr_ctrl(uint8_t enable, uint8_t new_cpr) +static void __maybe_unused spitz_card_pwr_ctrl(uint8_t enable, uint8_t new_cpr) { unsigned short cpr; unsigned long flags; |