aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2008-06-10 13:55:52 +0200
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-06-27 15:32:27 +0200
commitaafafddb01e259cff61b3d3f5b3466f0a6a65b84 (patch)
tree2b805bef76647a86a157ffa0122a7d08df0ecba0 /arch/avr32
parentc1f24ac99f3711a6caa0e1d1c01a071ed72a7e0b (diff)
downloadkernel_samsung_espresso10-aafafddb01e259cff61b3d3f5b3466f0a6a65b84.zip
kernel_samsung_espresso10-aafafddb01e259cff61b3d3f5b3466f0a6a65b84.tar.gz
kernel_samsung_espresso10-aafafddb01e259cff61b3d3f5b3466f0a6a65b84.tar.bz2
avr32: minor GPIO handling updates
On the odd chance some code uses a pin as a GPIO IRQ without calling gpio_request() or gpio_direction_input(), the debug dump should still show its pin status. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/mach-at32ap/pio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c
index 38a8fa3..60da03b 100644
--- a/arch/avr32/mach-at32ap/pio.c
+++ b/arch/avr32/mach-at32ap/pio.c
@@ -318,6 +318,8 @@ static void pio_bank_show(struct seq_file *s, struct gpio_chip *chip)
const char *label;
label = gpiochip_is_requested(chip, i);
+ if (!label && (imr & mask))
+ label = "[irq]";
if (!label)
continue;