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

gpio-samsung: Remove now unused s3c2410_gpio* API

There is no more users of s3c2410_gpio_pullup(), s3c2410_gpio_setpin()
and s3c2410_gpio_getpin() so remove theese functions.

Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>

authored by

Sylwester Nawrocki and committed by
Kukjin Kim
4e321a39 0b426f6f

-40
-40
drivers/gpio/gpio-samsung.c
··· 3131 3131 } 3132 3132 EXPORT_SYMBOL(s3c_gpio_getpull); 3133 3133 3134 - /* gpiolib wrappers until these are totally eliminated */ 3135 - 3136 - void s3c2410_gpio_pullup(unsigned int pin, unsigned int to) 3137 - { 3138 - int ret; 3139 - 3140 - WARN_ON(to); /* should be none of these left */ 3141 - 3142 - if (!to) { 3143 - /* if pull is enabled, try first with up, and if that 3144 - * fails, try using down */ 3145 - 3146 - ret = s3c_gpio_setpull(pin, S3C_GPIO_PULL_UP); 3147 - if (ret) 3148 - s3c_gpio_setpull(pin, S3C_GPIO_PULL_DOWN); 3149 - } else { 3150 - s3c_gpio_setpull(pin, S3C_GPIO_PULL_NONE); 3151 - } 3152 - } 3153 - EXPORT_SYMBOL(s3c2410_gpio_pullup); 3154 - 3155 - void s3c2410_gpio_setpin(unsigned int pin, unsigned int to) 3156 - { 3157 - /* do this via gpiolib until all users removed */ 3158 - 3159 - gpio_request(pin, "temporary"); 3160 - gpio_set_value(pin, to); 3161 - gpio_free(pin); 3162 - } 3163 - EXPORT_SYMBOL(s3c2410_gpio_setpin); 3164 - 3165 - unsigned int s3c2410_gpio_getpin(unsigned int pin) 3166 - { 3167 - struct samsung_gpio_chip *chip = samsung_gpiolib_getchip(pin); 3168 - unsigned long offs = pin - chip->chip.base; 3169 - 3170 - return __raw_readl(chip->base + 0x04) & (1 << offs); 3171 - } 3172 - EXPORT_SYMBOL(s3c2410_gpio_getpin); 3173 - 3174 3134 #ifdef CONFIG_S5P_GPIO_DRVSTR 3175 3135 s5p_gpio_drvstr_t s5p_gpio_get_drvstr(unsigned int pin) 3176 3136 {