| 1 | From 15e9b9b9ed268fa91e52c44d621f3d0296162d15 Mon Sep 17 00:00:00 2001 |
| 2 | From: David Howells <dhowells@redhat.com> |
| 3 | Date: Fri, 23 Mar 2012 15:37:34 +0000 |
| 4 | Subject: [PATCH] ARM: Fix missing linux/types.h #inclusion in asm/hardware/iop3xx.h |
| 5 | |
| 6 | arch/arm/include/asm/hardware/iop3xx.h needs to include linux/types.h to avoid |
| 7 | the following errors: |
| 8 | |
| 9 | In file included from arch/arm/plat-iop/restart.c:10:0: |
| 10 | /data/fs/linux-2.6-fscache/arch/arm/include/asm/hardware/iop3xx.h:239:1: error: unknown type name 'u32' |
| 11 | /data/fs/linux-2.6-fscache/arch/arm/include/asm/hardware/iop3xx.h: In function 'read_tmr0': |
| 12 | /data/fs/linux-2.6-fscache/arch/arm/include/asm/hardware/iop3xx.h:241:2: error: unknown type name 'u32' |
| 13 | /data/fs/linux-2.6-fscache/arch/arm/include/asm/hardware/iop3xx.h: At top level: |
| 14 | /data/fs/linux-2.6-fscache/arch/arm/include/asm/hardware/iop3xx.h:246:31: error: unknown type name 'u32' |
| 15 | ... |
| 16 | |
| 17 | Signed-off-by: David Howells <dhowells@redhat.com> |
| 18 | --- |
| 19 | arch/arm/include/asm/hardware/iop3xx.h | 3 +++ |
| 20 | 1 files changed, 3 insertions(+), 0 deletions(-) |
| 21 | |
| 22 | --- a/arch/arm/include/asm/hardware/iop3xx.h |
| 23 | +++ b/arch/arm/include/asm/hardware/iop3xx.h |
| 24 | @@ -231,6 +231,9 @@ extern int iop3xx_get_init_atu(void); |
| 25 | |
| 26 | |
| 27 | #ifndef __ASSEMBLY__ |
| 28 | + |
| 29 | +#include <linux/types.h> |
| 30 | + |
| 31 | void iop3xx_map_io(void); |
| 32 | void iop_init_cp6_handler(void); |
| 33 | void iop_init_time(unsigned long tickrate); |
| 34 | |