Patchwork PM debug: Fix warning when no CONFIG_DEBUG_FS

login
register
mail settings
Submitter Aguirre Rodriguez, Sergio Alberto
Date Jan. 14, 2010, 5:05 p.m.
Message ID <A24693684029E5489D1D202277BE894451538FE7@dlee02.ent.ti.com>
Download mbox | patch
Permalink /patch/72902/
State Accepted
Delegated to: Kevin Hilman
Headers show

Comments

Patch

diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c
index 860b755..9727484 100644
--- a/arch/arm/mach-omap2/pm-debug.c
+++ b/arch/arm/mach-omap2/pm-debug.c
@@ -54,8 +54,6 @@  int omap2_pm_debug;
 	regs[reg_count++].val = \
 			 __raw_readl(OMAP2_L4_IO_ADDRESS(0x480fe000 + (off)))
 
-static int __init pm_dbg_init(void);
-
 void omap2_pm_dump(int mode, int resume, unsigned int us)
 {
 	struct reg {
@@ -167,6 +165,8 @@  struct dentry *pm_dbg_dir;
 
 static int pm_dbg_init_done;
 
+static int __init pm_dbg_init(void);
+
 enum {
 	DEBUG_FILE_COUNTERS = 0,
 	DEBUG_FILE_TIMERS,