]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
avr32: minor GPIO handling updates
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 10 Jun 2008 11:55:52 +0000 (13:55 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Fri, 27 Jun 2008 13:32:27 +0000 (15:32 +0200)
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>
arch/avr32/mach-at32ap/pio.c

index 38a8fa31c0b5c8de591ae8f39a08c2e90d2a862b..60da03ba7117e0c9a62ad4756ac5fa0aecf7d756 100644 (file)
@@ -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;