diff options
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r-- | arch/arm/plat-s3c24xx/gpio.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/plat-s3c24xx/gpio.c b/arch/arm/plat-s3c24xx/gpio.c index 0b3b2cb228ab..9b3d74c186fc 100644 --- a/arch/arm/plat-s3c24xx/gpio.c +++ b/arch/arm/plat-s3c24xx/gpio.c | |||
@@ -20,7 +20,6 @@ | |||
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | */ | 21 | */ |
22 | 22 | ||
23 | |||
24 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
25 | #include <linux/init.h> | 24 | #include <linux/init.h> |
26 | #include <linux/module.h> | 25 | #include <linux/module.h> |
@@ -75,18 +74,6 @@ void s3c2410_gpio_pullup(unsigned int pin, unsigned int to) | |||
75 | 74 | ||
76 | EXPORT_SYMBOL(s3c2410_gpio_pullup); | 75 | EXPORT_SYMBOL(s3c2410_gpio_pullup); |
77 | 76 | ||
78 | int s3c2410_gpio_getpull(unsigned int pin) | ||
79 | { | ||
80 | void __iomem *base = S3C24XX_GPIO_BASE(pin); | ||
81 | unsigned long offs = S3C2410_GPIO_OFFSET(pin); | ||
82 | |||
83 | if (pin < S3C2410_GPIO_BANKB) | ||
84 | return -EINVAL; | ||
85 | |||
86 | return (__raw_readl(base + 0x08) & (1L << offs)) ? 1 : 0; | ||
87 | } | ||
88 | |||
89 | EXPORT_SYMBOL(s3c2410_gpio_getpull); | ||
90 | 77 | ||
91 | void s3c2410_gpio_setpin(unsigned int pin, unsigned int to) | 78 | void s3c2410_gpio_setpin(unsigned int pin, unsigned int to) |
92 | { | 79 | { |