1 Index: linux-3.0.3/drivers/gpio/gpiolib.c
2 ===================================================================
3 --- linux-3.0.3.orig/drivers/gpio/gpiolib.c 2011-10-03 00:13:35.359561120 +0200
4 +++ linux-3.0.3/drivers/gpio/gpiolib.c 2011-10-03 09:52:55.785047081 +0200
6 #define GPIO_FLAGS_MASK ((1 << ID_SHIFT) - 1)
7 #define GPIO_TRIGGER_MASK (BIT(FLAG_TRIG_FALL) | BIT(FLAG_TRIG_RISE))
9 -#ifdef CONFIG_DEBUG_FS
10 +//#ifdef CONFIG_DEBUG_FS
15 static struct gpio_desc gpio_desc[ARCH_NR_GPIOS];
19 static inline void desc_set_label(struct gpio_desc *d, const char *label)
21 -#ifdef CONFIG_DEBUG_FS
22 +//#ifdef CONFIG_DEBUG_FS
28 /* Warn when drivers omit gpio_request() calls -- legal but ill-advised
31 if (desc->chip->names && desc->chip->names[gpio - desc->chip->base])
32 ioname = desc->chip->names[gpio - desc->chip->base];
35 + ioname = gpio_desc[gpio].label;
39 @@ -1347,11 +1348,11 @@
41 if (test_bit(FLAG_REQUESTED, &gpio_desc[gpio].flags) == 0)
43 -#ifdef CONFIG_DEBUG_FS
44 +//#ifdef CONFIG_DEBUG_FS
45 return gpio_desc[gpio].label;
53 EXPORT_SYMBOL_GPL(gpiochip_is_requested);