diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-01-25 08:42:49 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-02-18 06:20:26 -0500 |
commit | a91c5824dd79e5bb9606a48c45b7704a58177967 (patch) | |
tree | bddef67ba90dc134617a9e7072d8feaa172de44a /arch/arm/mach-at91 | |
parent | 99bd667a34f4cd3878d4458d75517a430cf40974 (diff) |
ARM: at91: fix pm declarations
In a recent rearrangement of the at91 pm initialization code, a broken
set of declarations was added for the !CONFIG_PM-case, leading to
this link error:
arch/arm/mach-at91/board-dt-sama5.o: In function `at91_rm9200_pm_init':
arch/arm/mach-at91/generic.h:40: multiple definition of `at91_rm9200_pm_init'
arch/arm/mach-at91/setup.o:arch/arm/mach-at91/generic.h:40: first defined here
arch/arm/mach-at91/board-dt-sama5.o: In function `at91_sam9260_pm_init':
arch/arm/mach-at91/generic.h:41: multiple definition of `at91_sam9260_pm_init'
arch/arm/mach-at91/setup.o:arch/arm/mach-at91/generic.h:41: first defined here
arch/arm/mach-at91/board-dt-sama5.o: In function `at91_sam9g45_pm_init':
arch/arm/mach-at91/generic.h:42: multiple definition of `at91_sam9g45_pm_init'
arch/arm/mach-at91/setup.o:arch/arm/mach-at91/generic.h:42: first defined here
This adds the missing 'static inline' to the declarations to avoid
creating a copy of the functions in each file that includes the
header.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 4db0ba22da9 ("ARM: at91: pm: prepare for multiplatform")
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/generic.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index a6e726a6e0b5..583369ffc284 100644 --- a/arch/arm/mach-at91/generic.h +++ b/arch/arm/mach-at91/generic.h | |||
@@ -35,10 +35,10 @@ extern void __init at91sam9260_pm_init(void); | |||
35 | extern void __init at91sam9g45_pm_init(void); | 35 | extern void __init at91sam9g45_pm_init(void); |
36 | extern void __init at91sam9x5_pm_init(void); | 36 | extern void __init at91sam9x5_pm_init(void); |
37 | #else | 37 | #else |
38 | void __init at91rm9200_pm_init(void) { } | 38 | static inline void __init at91rm9200_pm_init(void) { } |
39 | void __init at91sam9260_pm_init(void) { } | 39 | static inline void __init at91sam9260_pm_init(void) { } |
40 | void __init at91sam9g45_pm_init(void) { } | 40 | static inline void __init at91sam9g45_pm_init(void) { } |
41 | void __init at91sam9x5_pm_init(void) { } | 41 | static inline void __init at91sam9x5_pm_init(void) { } |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #endif /* _AT91_GENERIC_H */ | 44 | #endif /* _AT91_GENERIC_H */ |