1 --- a/drivers/gpio/gpiolib.c
2 +++ b/drivers/gpio/gpiolib.c
3 @@ -64,9 +64,9 @@ struct gpio_desc {
4 #define GPIO_FLAGS_MASK ((1 << ID_SHIFT) - 1)
5 #define GPIO_TRIGGER_MASK (BIT(FLAG_TRIG_FALL) | BIT(FLAG_TRIG_RISE))
7 -#ifdef CONFIG_DEBUG_FS
8 +//#ifdef CONFIG_DEBUG_FS
13 static struct gpio_desc gpio_desc[ARCH_NR_GPIOS];
15 @@ -76,9 +76,9 @@ static DEFINE_IDR(dirent_idr);
17 static inline void desc_set_label(struct gpio_desc *d, const char *label)
19 -#ifdef CONFIG_DEBUG_FS
20 +//#ifdef CONFIG_DEBUG_FS
26 /* Warn when drivers omit gpio_request() calls -- legal but ill-advised
27 @@ -727,7 +727,8 @@ int gpio_export(unsigned gpio, bool dire
29 if (desc->chip->names && desc->chip->names[gpio - desc->chip->base])
30 ioname = desc->chip->names[gpio - desc->chip->base];
33 + ioname = gpio_desc[gpio].label;
37 @@ -1347,11 +1348,11 @@ const char *gpiochip_is_requested(struct
39 if (test_bit(FLAG_REQUESTED, &gpio_desc[gpio].flags) == 0)
41 -#ifdef CONFIG_DEBUG_FS
42 +//#ifdef CONFIG_DEBUG_FS
43 return gpio_desc[gpio].label;
51 EXPORT_SYMBOL_GPL(gpiochip_is_requested);