aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-of.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
-rw-r--r--drivers/gpio/gpiolib-of.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index a5b90c8e9844..220caa5978f7 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -218,7 +218,7 @@ err0:
218EXPORT_SYMBOL(of_mm_gpiochip_add); 218EXPORT_SYMBOL(of_mm_gpiochip_add);
219 219
220#ifdef CONFIG_PINCTRL 220#ifdef CONFIG_PINCTRL
221void of_gpiochip_add_pin_range(struct gpio_chip *chip) 221static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
222{ 222{
223 struct device_node *np = chip->of_node; 223 struct device_node *np = chip->of_node;
224 struct gpio_pin_range *pin_range; 224 struct gpio_pin_range *pin_range;
@@ -254,7 +254,7 @@ void of_gpiochip_add_pin_range(struct gpio_chip *chip)
254 } while (index++); 254 } while (index++);
255} 255}
256 256
257void of_gpiochip_remove_pin_range(struct gpio_chip *chip) 257static void of_gpiochip_remove_pin_range(struct gpio_chip *chip)
258{ 258{
259 struct gpio_pin_range *pin_range, *tmp; 259 struct gpio_pin_range *pin_range, *tmp;
260 260
@@ -265,8 +265,8 @@ void of_gpiochip_remove_pin_range(struct gpio_chip *chip)
265 } 265 }
266} 266}
267#else 267#else
268void of_gpiochip_add_pin_range(struct gpio_chip *chip) {} 268static void of_gpiochip_add_pin_range(struct gpio_chip *chip) {}
269void of_gpiochip_remove_pin_range(struct gpio_chip *chip) {} 269static void of_gpiochip_remove_pin_range(struct gpio_chip *chip) {}
270#endif 270#endif
271 271
272void of_gpiochip_add(struct gpio_chip *chip) 272void of_gpiochip_add(struct gpio_chip *chip)