summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/sr_device.c
diff options
context:
space:
mode:
authorNishanth Menon2011-01-03 20:35:41 +0100
committerKevin Hilman2011-01-07 22:33:06 +0100
commitd0eadf6d10923a46609b682bb12657fdfc1afc18 (patch)
tree6de4b6d59a9140fac07dffe7aa8865b022e1bb5f /arch/arm/mach-omap2/sr_device.c
parentomap2+: wdt: trivial sparse fixes (diff)
downloadkernel-qcow2-linux-d0eadf6d10923a46609b682bb12657fdfc1afc18.tar.gz
kernel-qcow2-linux-d0eadf6d10923a46609b682bb12657fdfc1afc18.tar.xz
kernel-qcow2-linux-d0eadf6d10923a46609b682bb12657fdfc1afc18.zip
OMAP3+: sr_device: include pm header
omap_enable_smartreflex_on_init is meant to be used by boards which would like to have SR enabled by default on the platform, while omap_devinit_smartreflex is used by pm code, the protos are defined in pm.h. This header should be included to ensure that sr_device function definitions match the prototypes. including pm.h fixes the sparse warnings (with CONFIG_OMAP_SMARTREFLEX=y): arch/arm/mach-omap2/sr_device.c:138:13: warning: symbol 'omap_enable_smartreflex_on_init' was not declared. Should it be static? arch/arm/mach-omap2/sr_device.c:143:12: warning: symbol 'omap_devinit_smartreflex' 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/sr_device.c')
-rw-r--r--arch/arm/mach-omap2/sr_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c
index 786d685c09a9..b1e0af18a26a 100644
--- a/arch/arm/mach-omap2/sr_device.c
+++ b/arch/arm/mach-omap2/sr_device.c
@@ -27,6 +27,7 @@
#include <plat/voltage.h>
#include "control.h"
+#include "pm.h"
static bool sr_enable_on_init;