diff options
Diffstat (limited to 'arch/arm/mach-ep93xx/gpio.c')
-rw-r--r-- | arch/arm/mach-ep93xx/gpio.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/arm/mach-ep93xx/gpio.c b/arch/arm/mach-ep93xx/gpio.c index a5a9ff70b198..415dce37b88c 100644 --- a/arch/arm/mach-ep93xx/gpio.c +++ b/arch/arm/mach-ep93xx/gpio.c | |||
@@ -356,29 +356,6 @@ static int ep93xx_gpio_set_debounce(struct gpio_chip *chip, | |||
356 | return 0; | 356 | return 0; |
357 | } | 357 | } |
358 | 358 | ||
359 | static void ep93xx_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) | ||
360 | { | ||
361 | struct ep93xx_gpio_chip *ep93xx_chip = to_ep93xx_gpio_chip(chip); | ||
362 | u8 data_reg, data_dir_reg; | ||
363 | int gpio, i; | ||
364 | |||
365 | data_reg = __raw_readb(ep93xx_chip->data_reg); | ||
366 | data_dir_reg = __raw_readb(ep93xx_chip->data_dir_reg); | ||
367 | |||
368 | gpio = ep93xx_chip->chip.base; | ||
369 | for (i = 0; i < chip->ngpio; i++, gpio++) { | ||
370 | int is_out = data_dir_reg & (1 << i); | ||
371 | int irq = gpio_to_irq(gpio); | ||
372 | |||
373 | seq_printf(s, " %s%d gpio-%-3d (%-12s) %s %s %s\n", | ||
374 | chip->label, i, gpio, | ||
375 | gpiochip_is_requested(chip, i) ? : "", | ||
376 | is_out ? "out" : "in ", | ||
377 | (data_reg & (1<< i)) ? "hi" : "lo", | ||
378 | (!is_out && irq>= 0) ? "(interrupt)" : ""); | ||
379 | } | ||
380 | } | ||
381 | |||
382 | #define EP93XX_GPIO_BANK(name, dr, ddr, base_gpio) \ | 359 | #define EP93XX_GPIO_BANK(name, dr, ddr, base_gpio) \ |
383 | { \ | 360 | { \ |
384 | .chip = { \ | 361 | .chip = { \ |
@@ -387,7 +364,6 @@ static void ep93xx_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) | |||
387 | .direction_output = ep93xx_gpio_direction_output, \ | 364 | .direction_output = ep93xx_gpio_direction_output, \ |
388 | .get = ep93xx_gpio_get, \ | 365 | .get = ep93xx_gpio_get, \ |
389 | .set = ep93xx_gpio_set, \ | 366 | .set = ep93xx_gpio_set, \ |
390 | .dbg_show = ep93xx_gpio_dbg_show, \ | ||
391 | .base = base_gpio, \ | 367 | .base = base_gpio, \ |
392 | .ngpio = 8, \ | 368 | .ngpio = 8, \ |
393 | }, \ | 369 | }, \ |