lkml.org 
[lkml]   [2023]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] gpiolib: cleanup for duplicated including
rm second `#include <linux/err.h>`

Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com>
---
include/linux/gpio/driver.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 0aed62f0c633..d659ba63bc20 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -789,8 +789,6 @@ int gpio_device_get_base(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)
--
2.40.0

\
 
 \ /
  Last update: 2023-12-15 09:46    [W:1.840 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site