Skip to content

Commit

Permalink
gpiolib: remove duplicate inclusions
Browse files Browse the repository at this point in the history
Remove second `#include <linux/err.h>`. Remove `#include <asm/errno.h>`
too as it's included by `err.h`.

Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
  • Loading branch information
Wang Jinchao authored and Bartosz Golaszewski committed Dec 18, 2023
1 parent 0a10d10 commit 5a2a2cd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/linux/gpio/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,6 @@ int gpiochip_irqchip_add_domain(struct gpio_chip *gc,
#else

#include <asm/bug.h>
#include <asm/errno.h>

static inline int gpiochip_irqchip_add_domain(struct gpio_chip *gc,
struct irq_domain *domain)
Expand Down Expand Up @@ -811,8 +810,6 @@ const char *gpio_device_get_label(struct gpio_device *gdev);

#else /* CONFIG_GPIOLIB */

#include <linux/err.h>

#include <asm/bug.h>

static inline struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)
Expand Down

0 comments on commit 5a2a2cd

Please sign in to comment.