* [PATCH] PM: Fix compile error
@ 2008-11-21 7:38 Sanjeev Premi
2008-11-25 18:34 ` Kevin Hilman
0 siblings, 1 reply; 2+ messages in thread
From: Sanjeev Premi @ 2008-11-21 7:38 UTC (permalink / raw)
To: linux-omap; +Cc: Sanjeev Premi
Function pm_dbg_update_time() is defined in within
an #ifdef CONFIG_DEBUG_FS; leading to this error:
arch/arm/mach-omap2/built-in.o: In function `_pwrdm_state_switch':
/db/psp_git/users/a0756819/omap-kern-latest/arch/arm/mach-omap2/powerdomain.c:139: undefined reference to `pm_dbg_update_time'
Signed-off-by: Sanjeev Premi <premi@ti.com>
---
arch/arm/mach-omap2/powerdomain.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c
index 0334609..081b3b6 100644
--- a/arch/arm/mach-omap2/powerdomain.c
+++ b/arch/arm/mach-omap2/powerdomain.c
@@ -136,7 +136,9 @@ static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag)
if (state != prev)
pwrdm->state_counter[state]++;
+#ifdef CONFIG_DEBUG_FS
pm_dbg_update_time(pwrdm, prev);
+#endif
pwrdm->state = state;
--
1.5.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] PM: Fix compile error
2008-11-21 7:38 [PATCH] PM: Fix compile error Sanjeev Premi
@ 2008-11-25 18:34 ` Kevin Hilman
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2008-11-25 18:34 UTC (permalink / raw)
To: Sanjeev Premi; +Cc: linux-omap
Sanjeev,
Sanjeev Premi <premi@ti.com> writes:
> Function pm_dbg_update_time() is defined in within
> an #ifdef CONFIG_DEBUG_FS; leading to this error:
>
> arch/arm/mach-omap2/built-in.o: In function `_pwrdm_state_switch':
> /db/psp_git/users/a0756819/omap-kern-latest/arch/arm/mach-omap2/powerdomain.c:139: undefined reference to `pm_dbg_update_time'
>
Thanks. I have a similar fix for this already staged for the next PM branch.
Kevin
> Signed-off-by: Sanjeev Premi <premi@ti.com>
> ---
> arch/arm/mach-omap2/powerdomain.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c
> index 0334609..081b3b6 100644
> --- a/arch/arm/mach-omap2/powerdomain.c
> +++ b/arch/arm/mach-omap2/powerdomain.c
> @@ -136,7 +136,9 @@ static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag)
> if (state != prev)
> pwrdm->state_counter[state]++;
>
> +#ifdef CONFIG_DEBUG_FS
> pm_dbg_update_time(pwrdm, prev);
> +#endif
>
> pwrdm->state = state;
>
> --
> 1.5.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-25 18:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 7:38 [PATCH] PM: Fix compile error Sanjeev Premi
2008-11-25 18:34 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox