aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pc100/gpiolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s5pc100/gpiolib.c')
-rw-r--r--arch/arm/mach-s5pc100/gpiolib.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-s5pc100/gpiolib.c b/arch/arm/mach-s5pc100/gpiolib.c
index c8e8336a3a12..494a53b10479 100644
--- a/arch/arm/mach-s5pc100/gpiolib.c
+++ b/arch/arm/mach-s5pc100/gpiolib.c
@@ -1,10 +1,10 @@
1/* 1/*
2 * arch/arm/plat-s5pc1xx/gpiolib.c 2 * arch/arm/plat-s5pc100/gpiolib.c
3 * 3 *
4 * Copyright 2009 Samsung Electronics Co 4 * Copyright 2009 Samsung Electronics Co
5 * Kyungmin Park <kyungmin.park@samsung.com> 5 * Kyungmin Park <kyungmin.park@samsung.com>
6 * 6 *
7 * S5PC1XX - GPIOlib support 7 * S5PC100 - GPIOlib support
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as 10 * it under the terms of the GNU General Public License version 2 as
@@ -62,12 +62,12 @@
62 */ 62 */
63 63
64#if 0 64#if 0
65static int s5pc1xx_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset) 65static int s5pc100_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset)
66{ 66{
67 return S3C_IRQ_GPIO(chip->base + offset); 67 return S3C_IRQ_GPIO(chip->base + offset);
68} 68}
69 69
70static int s5pc1xx_gpiolib_to_eint(struct gpio_chip *chip, unsigned int offset) 70static int s5pc100_gpiolib_to_eint(struct gpio_chip *chip, unsigned int offset)
71{ 71{
72 int base; 72 int base;
73 73
@@ -382,8 +382,8 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = {
382}; 382};
383 383
384/* FIXME move from irq-gpio.c */ 384/* FIXME move from irq-gpio.c */
385extern struct irq_chip s5pc1xx_gpioint; 385extern struct irq_chip s5pc100_gpioint;
386extern void s5pc1xx_irq_gpioint_handler(unsigned int irq, struct irq_desc *desc); 386extern void s5pc100_irq_gpioint_handler(unsigned int irq, struct irq_desc *desc);
387 387
388static __init void s5pc100_gpiolib_link(struct s3c_gpio_chip *chip) 388static __init void s5pc100_gpiolib_link(struct s3c_gpio_chip *chip)
389{ 389{
@@ -392,21 +392,21 @@ static __init void s5pc100_gpiolib_link(struct s3c_gpio_chip *chip)
392 if (chip->config == &gpio_cfg) { 392 if (chip->config == &gpio_cfg) {
393 int i, irq; 393 int i, irq;
394 394
395 chip->chip.to_irq = s5pc1xx_gpiolib_to_irq; 395 chip->chip.to_irq = s5pc100_gpiolib_to_irq;
396 396
397 for (i = 0; i < chip->chip.ngpio; i++) { 397 for (i = 0; i < chip->chip.ngpio; i++) {
398 irq = S3C_IRQ_GPIO_BASE + chip->chip.base + i; 398 irq = S3C_IRQ_GPIO_BASE + chip->chip.base + i;
399 set_irq_chip(irq, &s5pc1xx_gpioint); 399 set_irq_chip(irq, &s5pc100_gpioint);
400 set_irq_data(irq, &chip->chip); 400 set_irq_data(irq, &chip->chip);
401 set_irq_handler(irq, handle_level_irq); 401 set_irq_handler(irq, handle_level_irq);
402 set_irq_flags(irq, IRQF_VALID); 402 set_irq_flags(irq, IRQF_VALID);
403 } 403 }
404 } else if (chip->config == &gpio_cfg_eint) 404 } else if (chip->config == &gpio_cfg_eint)
405 chip->chip.to_irq = s5pc1xx_gpiolib_to_eint; 405 chip->chip.to_irq = s5pc100_gpiolib_to_eint;
406#endif 406#endif
407} 407}
408 408
409static __init int s5pc1xx_gpiolib_init(void) 409static __init int s5pc100_gpiolib_init(void)
410{ 410{
411 struct s3c_gpio_chip *chip; 411 struct s3c_gpio_chip *chip;
412 int nr_chips; 412 int nr_chips;
@@ -421,8 +421,8 @@ static __init int s5pc1xx_gpiolib_init(void)
421 ARRAY_SIZE(s5pc100_gpio_chips)); 421 ARRAY_SIZE(s5pc100_gpio_chips));
422#if 0 422#if 0
423 /* Interrupt */ 423 /* Interrupt */
424 set_irq_chained_handler(IRQ_GPIOINT, s5pc1xx_irq_gpioint_handler); 424 set_irq_chained_handler(IRQ_GPIOINT, s5pc100_irq_gpioint_handler);
425#endif 425#endif
426 return 0; 426 return 0;
427} 427}
428core_initcall(s5pc1xx_gpiolib_init); 428core_initcall(s5pc100_gpiolib_init);