diff options
author | Nishanth Menon <nm@ti.com> | 2011-01-03 13:58:30 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-01-07 16:33:07 -0500 |
commit | dda0aea7ba5a902982cb65a7f7ec1b5c8e7b6923 (patch) | |
tree | 47020ef77ae6af8d0006fb268e954b9ca27d2284 /arch/arm/mach-omap2 | |
parent | c84ff1cc48fa41ea1b86f76f61dd4767f1adb0cd (diff) |
OMAP2+: TWL: include pm header for init protos
twl_init functions are declared in pm.h and used in pm.c
pm.h header defining the protos need to be included to
ensure that omap_twl.c has consistent function definition.
This fixes sparse warning:
arch/arm/mach-omap2/omap_twl.c:237:12: warning: symbol 'omap4_twl_init' was not declared. Should it be static?
arch/arm/mach-omap2/omap_twl.c:256:12: warning: symbol 'omap3_twl_init' was not declared. Should it be static?
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/omap_twl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/omap_twl.c index 65ab4e33cfca..00e1d2b53683 100644 --- a/arch/arm/mach-omap2/omap_twl.c +++ b/arch/arm/mach-omap2/omap_twl.c | |||
@@ -20,6 +20,8 @@ | |||
20 | 20 | ||
21 | #include <plat/voltage.h> | 21 | #include <plat/voltage.h> |
22 | 22 | ||
23 | #include "pm.h" | ||
24 | |||
23 | #define OMAP3_SRI2C_SLAVE_ADDR 0x12 | 25 | #define OMAP3_SRI2C_SLAVE_ADDR 0x12 |
24 | #define OMAP3_VDD_MPU_SR_CONTROL_REG 0x00 | 26 | #define OMAP3_VDD_MPU_SR_CONTROL_REG 0x00 |
25 | #define OMAP3_VDD_CORE_SR_CONTROL_REG 0x01 | 27 | #define OMAP3_VDD_CORE_SR_CONTROL_REG 0x01 |