prepare for the transition to linux 2.6.22 - make it possible to override the kernel...
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.22 / 013-mips_generic_gpio_support.patch
1 diff -urN linux-2.6.21.1.old/arch/mips/defconfig linux-2.6.21.1.dev/arch/mips/defconfig
2 --- linux-2.6.21.1.old/arch/mips/defconfig      2007-04-27 23:49:26.000000000 +0200
3 +++ linux-2.6.21.1.dev/arch/mips/defconfig      2007-05-26 19:55:17.542651920 +0200
4 @@ -69,6 +69,7 @@
5  CONFIG_GENERIC_HWEIGHT=y
6  CONFIG_GENERIC_CALIBRATE_DELAY=y
7  CONFIG_GENERIC_TIME=y
8 +CONFIG_GENERIC_GPIO=n
9  CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
10  # CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ is not set
11  CONFIG_ARC=y
12 diff -urN linux-2.6.21.1.old/arch/mips/Kconfig linux-2.6.21.1.dev/arch/mips/Kconfig
13 --- linux-2.6.21.1.old/arch/mips/Kconfig        2007-04-27 23:49:26.000000000 +0200
14 +++ linux-2.6.21.1.dev/arch/mips/Kconfig        2007-05-26 19:55:17.500658304 +0200
15 @@ -704,6 +704,10 @@
16         bool
17         default y
18  
19 +config GENERIC_GPIO
20 +       bool
21 +       default n
22 +
23  config SCHED_NO_NO_OMIT_FRAME_POINTER
24         bool
25         default y
26 diff -urN linux-2.6.21.1.old/include/asm-mips/gpio.h linux-2.6.21.1.dev/include/asm-mips/gpio.h
27 --- linux-2.6.21.1.old/include/asm-mips/gpio.h  1970-01-01 01:00:00.000000000 +0100
28 +++ linux-2.6.21.1.dev/include/asm-mips/gpio.h  2007-05-26 19:55:17.500658304 +0200
29 @@ -0,0 +1,6 @@
30 +#ifndef _ASM_MIPS_GPIO_H
31 +#define _ASM_MIPS_GPIO_H
32 +
33 +#include <gpio.h>
34 +
35 +#endif /* _ASM_MIPS_GPIO_H */