Patchwork ARM: imx: fix compile error on missing arm_pm_idle

login
register
mail settings
Submitter Paul Gortmaker
Date March 30, 2012, 6:42 p.m.
Message ID <1333132950-28357-1-git-send-email-paul.gortmaker@windriver.com>
Download mbox | patch
Permalink /patch/149730/
State New
Headers show

Comments

Paul Gortmaker - March 30, 2012, 6:42 p.m.
This shows up in imx_v6_v7_defconfig build:

arch/arm/mach-imx/mm-imx3.c: In function 'imx31_init_early':
arch/arm/mach-imx/mm-imx3.c:138: error: 'arm_pm_idle' undeclared
arch/arm/mach-imx/mm-imx5.c: In function 'imx51_init_early':
arch/arm/mach-imx/mm-imx5.c:105: error: 'arm_pm_idle' undeclared
arch/arm/mach-imx/mm-imx3.c: In function 'imx35_init_early':
arch/arm/mach-imx/mm-imx3.c:210: error: 'arm_pm_idle' undeclared
arch/arm/mach-imx/mm-imx5.c: In function 'imx51_init_early':
arch/arm/mach-imx/mm-imx5.c:105: error: 'arm_pm_idle' undeclared

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Paul Gortmaker - March 30, 2012, 6:51 p.m.
On 12-03-30 02:42 PM, Paul Gortmaker wrote:
> This shows up in imx_v6_v7_defconfig build:

Ignore this patch.  I see Olof has already fixed them in bulk.

http://marc.info/?l=linux-arm-kernel&m=133311840811220&w=2

Thanks,
Paul.

> 
> arch/arm/mach-imx/mm-imx3.c: In function 'imx31_init_early':
> arch/arm/mach-imx/mm-imx3.c:138: error: 'arm_pm_idle' undeclared
> arch/arm/mach-imx/mm-imx5.c: In function 'imx51_init_early':
> arch/arm/mach-imx/mm-imx5.c:105: error: 'arm_pm_idle' undeclared
> arch/arm/mach-imx/mm-imx3.c: In function 'imx35_init_early':
> arch/arm/mach-imx/mm-imx3.c:210: error: 'arm_pm_idle' undeclared
> arch/arm/mach-imx/mm-imx5.c: In function 'imx51_init_early':
> arch/arm/mach-imx/mm-imx5.c:105: error: 'arm_pm_idle' undeclared
> 
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> 
> diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c
> index d534d7f..7412738 100644
> --- a/arch/arm/mach-imx/mm-imx3.c
> +++ b/arch/arm/mach-imx/mm-imx3.c
> @@ -21,6 +21,7 @@
>  #include <linux/err.h>
>  
>  #include <asm/pgtable.h>
> +#include <asm/system_misc.h>
>  #include <asm/hardware/cache-l2x0.h>
>  #include <asm/mach/map.h>
>  
> diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c
> index 51af9fa..05250ae 100644
> --- a/arch/arm/mach-imx/mm-imx5.c
> +++ b/arch/arm/mach-imx/mm-imx5.c
> @@ -15,6 +15,7 @@
>  #include <linux/init.h>
>  #include <linux/clk.h>
>  
> +#include <asm/system_misc.h>
>  #include <asm/mach/map.h>
>  
>  #include <mach/hardware.h>

Patch

diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c
index d534d7f..7412738 100644
--- a/arch/arm/mach-imx/mm-imx3.c
+++ b/arch/arm/mach-imx/mm-imx3.c
@@ -21,6 +21,7 @@ 
 #include <linux/err.h>
 
 #include <asm/pgtable.h>
+#include <asm/system_misc.h>
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/map.h>
 
diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c
index 51af9fa..05250ae 100644
--- a/arch/arm/mach-imx/mm-imx5.c
+++ b/arch/arm/mach-imx/mm-imx5.c
@@ -15,6 +15,7 @@ 
 #include <linux/init.h>
 #include <linux/clk.h>
 
+#include <asm/system_misc.h>
 #include <asm/mach/map.h>
 
 #include <mach/hardware.h>