brcm63xx: add support for linux 3.3
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 001-MIPS-BCM63XX-add-missing-include-for-bcm63xx_gpio.h.patch
1 From a183d93bf0c6f9219ef1dd6e4948edf81c57ea3b Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Thu, 2 Feb 2012 09:27:58 +0100
4 Subject: [PATCH] MIPS: BCM63XX: add missing include for bcm63xx_gpio.h
5
6 bcm63xx_gpio.h uses macros defined in bcm63xx_cpu.h without including it,
7 leading to the following build failure:
8
9 CC [M] drivers/mmc/core/cd-gpio.o
10 In file included from arch/mips/include/asm/mach-bcm63xx/gpio.h:4:0,
11 from arch/mips/include/asm/gpio.h:4,
12 from include/linux/gpio.h:30,
13 from drivers/mmc/core/cd-gpio.c:12:
14
15 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h: In function 'bcm63xx_gpio_count':
16 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:10:2: error: implicit declaration of function 'bcm63xx_get_cpu_id'
17 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:11:7: error: 'BCM6358_CPU_ID' undeclared (first use in this function)
18 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:11:7: note: each undeclared identifier is reported only once for each function it appears in
19 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:13:7: error: 'BCM6338_CPU_ID' undeclared (first use in this function)
20 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:15:7: error: 'BCM6345_CPU_ID' undeclared (first use in this function)
21 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:17:7: error: 'BCM6368_CPU_ID' undeclared (first use in this function)
22 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:19:7: error: 'BCM6348_CPU_ID' undeclared (first use in this function)
23
24 make[7]: *** [drivers/mmc/core/cd-gpio.o] Error 1
25
26 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
27 ---
28
29 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h | 1 +
30 1 files changed, 1 insertions(+), 0 deletions(-)
31
32 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
33 +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
34 @@ -2,6 +2,7 @@
35 #define BCM63XX_GPIO_H
36
37 #include <linux/init.h>
38 +#include <bcm63xx_cpu.h>
39
40 int __init bcm63xx_gpio_init(void);
41