linux/arch/arm/plat-s3c24xx
Vasily Khoruzhick 812c4e40c2 ARM: S3C24XX: Fix mess with gpio {set,get}_pull callbacks
Currently the {set,get}_pull callbacks of the s3c24xx_gpiocfg_default structure
are initalized via s3c_gpio_{get,set}pull_1up. This results in a linker
error when only CONFIG_CPU_S3C2442 is selected:

arch/arm/plat-s3c24xx/built-in.o:(.data+0x13f4): undefined reference to
`s3c_gpio_getpull_1up'
arch/arm/plat-s3c24xx/built-in.o:(.data+0x13f8): undefined reference to
`s3c_gpio_setpull_1up'

The s3c2442 has pulldowns instead of pullups compared to the s3c2440.
The method of controlling them is the same though.
So this patch modifies the existing s3c_gpio_{get,set}pull_1up helper functions
to take an additional parameter deciding whether the pin has a pullup or pulldown.
The s3c_gpio_{get,set}pull_1{down,up} functions then wrap that functions passing
either S3C_GPIO_PULL_UP or S3C_GPIO_PULL_DOWN.

Furthermore this patch sets up the s3c24xx_gpiocfg_default.{get,set}_pull fields
in the s3c244{0,2}_map_io function to the new pulldown helper functions.

Based on patch from "Lars-Peter Clausen" <lars@metafoo.de>

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2010-12-08 01:04:56 +00:00
..
include ARM: S3C24XX: Fix mess with gpio {set,get}_pull callbacks 2010-12-08 01:04:56 +00:00
clock-dclk.c ARM: SAMSUNG: Reduce size of struct clk. 2010-01-15 17:10:10 +09:00
clock.c fix typos concerning "initiali[zs]e" 2010-06-16 18:05:05 +02:00
common-smdk.c ARM: S3C24XX: Fix nand partition table for s3c24XX 2010-10-18 19:53:34 +09:00
cpu-freq-debugfs.c ARM: S3C: CPUFREQ: Add debugfs support for cpufreq 2009-07-30 23:22:56 +01:00
cpu-freq.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
cpu.c ARM: S3C24XX: Fix mess with gpio {set,get}_pull callbacks 2010-12-08 01:04:56 +00:00
devs.c ARM: S3C24XX: I2S multi-component-related fixes 2010-08-31 13:25:17 +01:00
dma.c S3C: DMA: Change argument of s3c2410_dma_devconfig 2010-05-17 16:43:49 +09:00
gpio.c ARM: S3C24XX: Update missed gpio calls to use gpiolib 2010-05-18 19:06:33 +09:00
gpiolib.c ARM: S3C24XX: Fix mess with gpio {set,get}_pull callbacks 2010-12-08 01:04:56 +00:00
irq-pm.c ARM: S3C: Update Simtec copyright statements from , to - 2009-12-01 01:33:51 +00:00
irq.c ARM: S3C24XX: Export s3c24xx_set_fiq for modules. 2009-12-08 00:45:55 +00:00
Kconfig ARM: h1940: Use gpiolib for latch access 2010-09-26 00:45:18 +01:00
Makefile ARM: SAMSUNG: Implements cfg_gpio function for Samsung touchscreen 2010-05-19 18:25:22 +09:00
pm-simtec.c ARM: S3C: Fix Simtec copyright statements in Documentation/S3C24XX 2009-12-01 01:33:50 +00:00
pm.c ARM: S3C24XX: Remove s3c2410_gpio_getcfg(), implement s3c_gpio_getcfg() 2010-05-06 10:50:42 +09:00
s3c2410-clock.c ARM: SAMSUNG: Add s3c_disable_clocks() and tidy init+disable usage 2010-05-10 11:44:38 +09:00
s3c2410-cpufreq-utils.c ARM: S3C2410: CPUFREQ: Add core support. 2009-07-30 23:22:52 +01:00
s3c2410-iotiming.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
s3c2412-iotiming.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
s3c2443-clock.c ARM: S3C2443: Move parts of the clock code to common clock file 2010-05-10 11:44:42 +09:00
setup-i2c.c ARM: S3C24XX: Drop s3c2410 specific s3c2410_gpio_cfgpin() 2010-05-06 09:32:29 +09:00
setup-ts.c ARM: SAMSUNG: Implements cfg_gpio function for Samsung touchscreen 2010-05-19 18:25:22 +09:00
simtec-audio.c ARM: S3C24XX: machine support for Simtec Audio 2009-12-01 01:33:48 +00:00
sleep.S [ARM] S3C: Tidy sleep code path to fix call flow 2009-03-10 11:48:07 +00:00
spi-bus0-gpe11_12_13.c ARM: S3C24XX: Fix wrong s3c_gpio_cfgpull 2010-11-25 10:58:10 +09:00
spi-bus1-gpd8_9_10.c ARM: S3C24XX: Fix wrong s3c_gpio_cfgpull 2010-11-25 10:58:10 +09:00
spi-bus1-gpg5_6_7.c ARM: S3C24XX: Fix wrong s3c_gpio_cfgpull 2010-11-25 10:58:10 +09:00