diff mbox

[1/2] OMAP3: PM: Fix compile error with 'CONFIG_OMAP_PM_SRF=y'

Message ID 4d34a0a70903200107j65ae61fay9a954e71b8910348@mail.gmail.com (mailing list archive)
State Accepted
Delegated to: Kevin Hilman
Headers show

Commit Message

kim kyuwon March 20, 2009, 8:07 a.m. UTC
This patch fixes below compile error. The header file
'mach/omap34xx.h' declared all needed symbols.

  CC      arch/arm/mach-omap2/pm.o
  CC      arch/arm/mach-omap2/resource34xx.o
arch/arm/mach-omap2/resource34xx.c: In function 'resource_access_opp_lock':
arch/arm/mach-omap2/resource34xx.c:174: error: 'VDD1_OPP' undeclared
(first use in this function)
arch/arm/mach-omap2/resource34xx.c:177: error: 'VDD2_OPP' undeclared
(first use in this function)
arch/arm/mach-omap2/resource34xx.c:209: error: 'MAX_VDD1_OPP'
undeclared (first use in this function)
<snip>
make[1]: *** [arch/arm/mach-omap2/resource34xx.o] Error 1
arch/arm/mach-omap2/pm.c: In function 'vdd_opp_show':
arch/arm/mach-omap2/pm.c:140: error: 'VDD1_OPP' undeclared (first use
in this function)
arch/arm/mach-omap2/pm.c:140: error: (Each undeclared identifier is
reported only once
<snip>
make[1]: *** [arch/arm/mach-omap2/pm.o] Error 1

Signed-off-by: Kim Kyuwon <q1.kim@samsung.com>
---
 arch/arm/mach-omap2/pm.c           |    1 +
 arch/arm/mach-omap2/resource34xx.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

Comments

Kevin Hilman April 1, 2009, 12:13 a.m. UTC | #1
Kim Kyuwon <chammoru@gmail.com> writes:

> This patch fixes below compile error. The header file
> 'mach/omap34xx.h' declared all needed symbols.
>
>   CC      arch/arm/mach-omap2/pm.o
>   CC      arch/arm/mach-omap2/resource34xx.o
> arch/arm/mach-omap2/resource34xx.c: In function 'resource_access_opp_lock':
> arch/arm/mach-omap2/resource34xx.c:174: error: 'VDD1_OPP' undeclared
> (first use in this function)
> arch/arm/mach-omap2/resource34xx.c:177: error: 'VDD2_OPP' undeclared
> (first use in this function)
> arch/arm/mach-omap2/resource34xx.c:209: error: 'MAX_VDD1_OPP'
> undeclared (first use in this function)
> <snip>
> make[1]: *** [arch/arm/mach-omap2/resource34xx.o] Error 1
> arch/arm/mach-omap2/pm.c: In function 'vdd_opp_show':
> arch/arm/mach-omap2/pm.c:140: error: 'VDD1_OPP' undeclared (first use
> in this function)
> arch/arm/mach-omap2/pm.c:140: error: (Each undeclared identifier is
> reported only once
> <snip>
> make[1]: *** [arch/arm/mach-omap2/pm.o] Error 1
>
> Signed-off-by: Kim Kyuwon <q1.kim@samsung.com>

Thanks, pushing to PM branch.

Kevin

> ---
>  arch/arm/mach-omap2/pm.c           |    1 +
>  arch/arm/mach-omap2/resource34xx.c |    1 +
>  2 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
> index e64a80e..c0f1ae8 100644
> --- a/arch/arm/mach-omap2/pm.c
> +++ b/arch/arm/mach-omap2/pm.c
> @@ -34,6 +34,7 @@
>  #include <mach/powerdomain.h>
>  #include <mach/omapdev.h>
>  #include <mach/resource.h>
> +#include <mach/omap34xx.h>
>
>  #include "prm-regbits-34xx.h"
>  #include "pm.h"
> diff --git a/arch/arm/mach-omap2/resource34xx.c
> b/arch/arm/mach-omap2/resource34xx.c
> index 2328323..4db9289 100644
> --- a/arch/arm/mach-omap2/resource34xx.c
> +++ b/arch/arm/mach-omap2/resource34xx.c
> @@ -20,6 +20,7 @@
>  #include <linux/cpufreq.h>
>  #include <mach/powerdomain.h>
>  #include <mach/clockdomain.h>
> +#include <mach/omap34xx.h>
>  #include "smartreflex.h"
>  #include "resource34xx.h"
>  #include "pm.h"
> -- 
> 1.5.2.5
>
>
> -- 
> Kim Kyuwon
--
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
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index e64a80e..c0f1ae8 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -34,6 +34,7 @@ 
 #include <mach/powerdomain.h>
 #include <mach/omapdev.h>
 #include <mach/resource.h>
+#include <mach/omap34xx.h>

 #include "prm-regbits-34xx.h"
 #include "pm.h"
diff --git a/arch/arm/mach-omap2/resource34xx.c
b/arch/arm/mach-omap2/resource34xx.c
index 2328323..4db9289 100644
--- a/arch/arm/mach-omap2/resource34xx.c
+++ b/arch/arm/mach-omap2/resource34xx.c
@@ -20,6 +20,7 @@ 
 #include <linux/cpufreq.h>
 #include <mach/powerdomain.h>
 #include <mach/clockdomain.h>
+#include <mach/omap34xx.h>
 #include "smartreflex.h"
 #include "resource34xx.h"
 #include "pm.h"