Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'cleanup/gpio-header-removal' into next/soc

* cleanup/gpio-header-removal:
ARM: delete old reference to ARM_GPIOLIB_COMPLEX
ARM: kill CONFIG_NEED_MACH_GPIO_H
ARM: mach-s5p: get rid of all <mach/gpio.h> headers
ARM: s5p: cut the custom ARCH_NR_GPIOS definition

This resolves a massive amount of conflicts between the
mach/gpio.h removal and the s5p platform removal.

Almost all changes are trivial, as both sides remove
stuff.

Conflicts:
arch/arm/Kconfig
arch/arm/mach-s5p64x0/common.c
arch/arm/mach-s5p64x0/dev-audio.c
arch/arm/mach-s5p64x0/include/mach/gpio-samsung.h
arch/arm/mach-s5p64x0/mach-smdk6440.c
arch/arm/mach-s5p64x0/mach-smdk6450.c
arch/arm/mach-s5p64x0/setup-fb-24bpp.c
arch/arm/mach-s5p64x0/setup-i2c0.c
arch/arm/mach-s5p64x0/setup-i2c1.c
arch/arm/mach-s5p64x0/setup-sdhci-gpio.c
arch/arm/mach-s5p64x0/setup-spi.c
arch/arm/mach-s5pc100/dev-audio.c
arch/arm/mach-s5pc100/include/mach/gpio-samsung.h
arch/arm/mach-s5pc100/mach-smdkc100.c
arch/arm/mach-s5pc100/setup-fb-24bpp.c
arch/arm/mach-s5pc100/setup-i2c0.c
arch/arm/mach-s5pc100/setup-i2c1.c
arch/arm/mach-s5pc100/setup-ide.c
arch/arm/mach-s5pc100/setup-keypad.c
arch/arm/mach-s5pc100/setup-sdhci-gpio.c
arch/arm/mach-s5pc100/setup-spi.c
arch/arm/mach-s5pv210/dev-audio.c
arch/arm/mach-s5pv210/include/mach/gpio-samsung.h
arch/arm/mach-s5pv210/mach-aquila.c
arch/arm/mach-s5pv210/mach-goni.c
arch/arm/mach-s5pv210/mach-smdkv210.c
arch/arm/mach-s5pv210/setup-fb-24bpp.c
arch/arm/mach-s5pv210/setup-fimc.c
arch/arm/mach-s5pv210/setup-i2c0.c
arch/arm/mach-s5pv210/setup-i2c1.c
arch/arm/mach-s5pv210/setup-i2c2.c
arch/arm/mach-s5pv210/setup-ide.c
arch/arm/mach-s5pv210/setup-keypad.c
arch/arm/mach-s5pv210/setup-sdhci-gpio.c
arch/arm/mach-s5pv210/setup-spi.c
arch/arm/plat-samsung/Kconfig
arch/arm/plat-samsung/s5p-irq-eint.c

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+4 -36
-7
arch/arm/Kconfig
··· 240 240 this feature (eg, building a kernel for a single machine) and 241 241 you need to shrink the kernel to the minimal size. 242 242 243 - config NEED_MACH_GPIO_H 244 - bool 245 - help 246 - Select this when mach/gpio.h is required to provide special 247 - definitions for this platform. The need for mach/gpio.h should 248 - be avoided when possible. 249 - 250 243 config NEED_MACH_IO_H 251 244 bool 252 245 help
-7
arch/arm/include/asm/gpio.h
··· 5 5 #define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO 6 6 #endif 7 7 8 - /* not all ARM platforms necessarily support this API ... */ 9 - #ifdef CONFIG_NEED_MACH_GPIO_H 10 - #include <mach/gpio.h> 11 - #endif 12 - 13 - #ifndef __ARM_GPIOLIB_COMPLEX 14 8 /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ 15 9 #include <asm-generic/gpio.h> 16 10 ··· 12 18 #define gpio_get_value __gpio_get_value 13 19 #define gpio_set_value __gpio_set_value 14 20 #define gpio_cansleep __gpio_cansleep 15 - #endif 16 21 17 22 /* 18 23 * Provide a default gpio_to_irq() which should satisfy every case.
-16
arch/arm/plat-samsung/Kconfig
··· 51 51 52 52 if SAMSUNG_ATAGS 53 53 54 - config SAMSUNG_GPIO_EXTRA 55 - int "Number of additional GPIO pins" 56 - default 128 if SAMSUNG_GPIO_EXTRA128 57 - default 64 if SAMSUNG_GPIO_EXTRA64 58 - default 0 59 - help 60 - Use additional GPIO space in addition to the GPIO's the SOC 61 - provides. This allows expanding the GPIO space for use with 62 - GPIO expanders. 63 - 64 - config SAMSUNG_GPIO_EXTRA64 65 - bool 66 - 67 - config SAMSUNG_GPIO_EXTRA128 68 - bool 69 - 70 54 config S3C_GPIO_SPACE 71 55 int "Space between gpio banks" 72 56 default 0
+3
arch/arm/plat-samsung/include/plat/gpio-core.h
··· 14 14 #ifndef __PLAT_SAMSUNG_GPIO_CORE_H 15 15 #define __PLAT_SAMSUNG_GPIO_CORE_H 16 16 17 + /* Bring in machine-local definitions, especially S3C_GPIO_END */ 18 + #include <mach/gpio-samsung.h> 19 + 17 20 #define GPIOCON_OFF (0x00) 18 21 #define GPIODAT_OFF (0x04) 19 22
-2
arch/arm/plat-samsung/pm-gpio.c
··· 19 19 #include <linux/io.h> 20 20 #include <linux/gpio.h> 21 21 22 - #if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX) 23 22 #include <mach/gpio-samsung.h> 24 - #endif 25 23 26 24 #include <plat/gpio-core.h> 27 25 #include <plat/pm.h>
-3
drivers/gpio/gpio-samsung.c
··· 32 32 33 33 #include <mach/map.h> 34 34 #include <mach/regs-gpio.h> 35 - 36 - #if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX) 37 35 #include <mach/gpio-samsung.h> 38 - #endif 39 36 40 37 #include <plat/cpu.h> 41 38 #include <plat/gpio-core.h>
+1 -1
sound/soc/samsung/goni_wm8994.c
··· 16 16 #include <sound/jack.h> 17 17 18 18 #include <asm/mach-types.h> 19 - #include <mach/gpio.h> 19 + #include <mach/gpio-samsung.h> 20 20 21 21 #include "../codecs/wm8994.h" 22 22