diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-10-01 06:52:25 +0200 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-23 04:49:14 +0200 |
commit | 699afb75de3e7a32a802513864c869f41868c3c8 (patch) | |
tree | 0e362b05e750dec4cc4f2566a81ef98324137bf4 /arch/arm/mach-s5p6442/dev-spi.c | |
parent | ARM: S3C64XX: Change to using s3c_gpio_cfgpin_range() (diff) | |
download | linux-699afb75de3e7a32a802513864c869f41868c3c8.tar.xz linux-699afb75de3e7a32a802513864c869f41868c3c8.zip |
ARM: S5P6442: Change to using s3c_gpio_cfgpin_range()
Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to
use the recently introduced s3c_gpio_cfgpin_range().
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
[kgene.kim@samsung.com: fixed wrong change]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5p6442/dev-spi.c')
-rw-r--r-- | arch/arm/mach-s5p6442/dev-spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-s5p6442/dev-spi.c b/arch/arm/mach-s5p6442/dev-spi.c index e894651a88bd..547c570f689a 100644 --- a/arch/arm/mach-s5p6442/dev-spi.c +++ b/arch/arm/mach-s5p6442/dev-spi.c @@ -38,8 +38,7 @@ static int s5p6442_spi_cfg_gpio(struct platform_device *pdev) switch (pdev->id) { case 0: s3c_gpio_cfgpin(S5P6442_GPB(0), S3C_GPIO_SFN(2)); - s3c_gpio_cfgpin(S5P6442_GPB(2), S3C_GPIO_SFN(2)); - s3c_gpio_cfgpin(S5P6442_GPB(3), S3C_GPIO_SFN(2)); + s3c_gpio_cfgpin_range(S5P6442_GPB(2), 2, S3C_GPIO_SFN(2)); s3c_gpio_setpull(S5P6442_GPB(0), S3C_GPIO_PULL_UP); s3c_gpio_setpull(S5P6442_GPB(2), S3C_GPIO_PULL_UP); s3c_gpio_setpull(S5P6442_GPB(3), S3C_GPIO_PULL_UP); |