Chane code setting special-function and no pull-up to use
the s3c_gpio_cfgrange_nopull() wrapper.

Signed-off-by: Ben Dooks <ben-li...@fluff.org>
---
 arch/arm/mach-s5pc100/setup-sdhci-gpio.c |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/arch/arm/mach-s5pc100/setup-sdhci-gpio.c 
b/arch/arm/mach-s5pc100/setup-sdhci-gpio.c
index 15cf1ac..b353441 100644
--- a/arch/arm/mach-s5pc100/setup-sdhci-gpio.c
+++ b/arch/arm/mach-s5pc100/setup-sdhci-gpio.c
@@ -31,13 +31,10 @@ void s5pc100_setup_sdhci0_cfg_gpio(struct platform_device 
*dev, int width)
                num = width - 2;
 
        /* Set all the necessary GPG0/GPG1 pins to special-function 0 */
-       s3c_gpio_cfgall_range(S5PC100_GPG0(0), 2 + num,
-                             S3C_GPIO_SFN(2), S3C_GPIO_PULL_NONE);
+       s3c_gpio_cfgrange_nopull(S5PC100_GPG0(0), 2 + num, S3C_GPIO_SFN(2));
 
-       if (width == 8) {
-               s3c_gpio_cfgall_range(S5PC100_GPG1(0), 2,
-                                     S3C_GPIO_SFN(2), S3C_GPIO_PULL_NONE);
-       }
+       if (width == 8)
+               s3c_gpio_cfgrange_nopull(S5PC100_GPG1(0), 2, S3C_GPIO_SFN(2));
 
        s3c_gpio_setpull(S5PC100_GPG1(2), S3C_GPIO_PULL_UP);
        s3c_gpio_cfgpin(S5PC100_GPG1(2), S3C_GPIO_SFN(2));
@@ -46,8 +43,7 @@ void s5pc100_setup_sdhci0_cfg_gpio(struct platform_device 
*dev, int width)
 void s5pc100_setup_sdhci1_cfg_gpio(struct platform_device *dev, int width)
 {
        /* Set all the necessary GPG2 pins to special-function 2 */
-       s3c_gpio_cfgall_range(S5PC100_GPG2(0), 2 + width,
-                             S3C_GPIO_SFN(2), S3C_GPIO_PULL_NONE);
+       s3c_gpio_cfgrange_nopull(S5PC100_GPG2(0), 2 + width, S3C_GPIO_SFN(2));
 
        s3c_gpio_setpull(S5PC100_GPG2(6), S3C_GPIO_PULL_UP);
        s3c_gpio_cfgpin(S5PC100_GPG2(6), S3C_GPIO_SFN(2));
@@ -56,8 +52,7 @@ void s5pc100_setup_sdhci1_cfg_gpio(struct platform_device 
*dev, int width)
 void s5pc100_setup_sdhci2_cfg_gpio(struct platform_device *dev, int width)
 {
        /* Set all the necessary GPG3 pins to special-function 2 */
-       s3c_gpio_cfgall_range(S5PC100_GPG3(0), 2 + width,
-                             S3C_GPIO_SFN(2), S3C_GPIO_PULL_NONE);
+       s3c_gpio_cfgrange_nopull(S5PC100_GPG3(0), 2 + width, S3C_GPIO_SFN(2));
 
        s3c_gpio_setpull(S5PC100_GPG3(6), S3C_GPIO_PULL_UP);
        s3c_gpio_cfgpin(S5PC100_GPG3(6), S3C_GPIO_SFN(2));
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to