Patchworkβ [v2,OMAP3_PM] Fix omap zoom2 defconfig build error

login
register
about
Submitter manjugk manjugk
Date 2009-11-02 11:21:20
Message ID <1257160880-13641-1-git-send-email-manjugk@ti.com>
Download mbox | patch
Permalink /patch/56999/
State Changes Requested
Delegated to: Kevin Hilman
Headers show

Comments

manjugk manjugk - 2009-11-02 11:21:20
From: Manjunatha GK <manjugk@ti.com>

The omap zoom2 defconfig build breaks on linux-omap-pm(with pm branch)
when CONFIG_DEBUG_FS is not enabled. This patch fixes the build issue.
Kernel booting tested on omap zoom2 board.

Signed-off-by: Manjunatha GK <manjugk@ti.com>
---
 arch/arm/mach-omap2/pm-debug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
vimal singh - 2009-11-02 11:34:25
On Mon, Nov 2, 2009 at 4:51 PM,  <manjugk@ti.com> wrote:
> From: Manjunatha GK <manjugk@ti.com>
>
> The omap zoom2 defconfig build breaks on linux-omap-pm(with pm branch)
> when CONFIG_DEBUG_FS is not enabled. This patch fixes the build issue.
> Kernel booting tested on omap zoom2 board.
>
> Signed-off-by: Manjunatha GK <manjugk@ti.com>
> ---
>  arch/arm/mach-omap2/pm-debug.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c
> index 767ebbc..3a42615 100644
> --- a/arch/arm/mach-omap2/pm-debug.c
> +++ b/arch/arm/mach-omap2/pm-debug.c
> @@ -625,4 +625,6 @@ arch_initcall(pm_dbg_init);
>
>  #else
>  void pm_dbg_update_time(struct powerdomain *pwrdm, int prev) {}
> +int pm_dbg_regset_init(int reg_set) {}
> +int pm_dbg_regset_save(int reg_set) {}

'return 0' to avoid compilation warning...

Patch

diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c
index 767ebbc..3a42615 100644
--- a/arch/arm/mach-omap2/pm-debug.c
+++ b/arch/arm/mach-omap2/pm-debug.c
@@ -625,4 +625,6 @@  arch_initcall(pm_dbg_init);
 
 #else
 void pm_dbg_update_time(struct powerdomain *pwrdm, int prev) {}
+int pm_dbg_regset_init(int reg_set) {}
+int pm_dbg_regset_save(int reg_set) {}
 #endif