diff mbox series

platform/x86: remove duplicate include in barco-p50-gpio.c

Message ID 20211027081516.1865-1-ran.jianping@zte.com.cn (mailing list archive)
State Changes Requested, archived
Headers show
Series platform/x86: remove duplicate include in barco-p50-gpio.c | expand

Commit Message

CGEL Oct. 27, 2021, 8:15 a.m. UTC
From: ran jianping <ran.jianping@zte.com.cn>

'linux/io.h' included in 'drivers/platform/x86/barco-p50-gpio.c'
 is duplicated.It is also included on the 17 line.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
---
 drivers/platform/x86/barco-p50-gpio.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Peter Korsgaard Oct. 27, 2021, 8:19 a.m. UTC | #1
>>>>> "cgel" == cgel zte <cgel.zte@gmail.com> writes:

 > From: ran jianping <ran.jianping@zte.com.cn>
 > 'linux/io.h' included in 'drivers/platform/x86/barco-p50-gpio.c'
 >  is duplicated.It is also included on the 17 line.

 > Reported-by: Zeal Robot <zealci@zte.com.cn>
 > Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
 > ---
 >  drivers/platform/x86/barco-p50-gpio.c | 1 -
 >  1 file changed, 1 deletion(-)

 > diff --git a/drivers/platform/x86/barco-p50-gpio.c b/drivers/platform/x86/barco-p50-gpio.c
 > index f5c72e33f9ae..bb8ed8e95225 100644
 > --- a/drivers/platform/x86/barco-p50-gpio.c
 > +++ b/drivers/platform/x86/barco-p50-gpio.c
 > @@ -14,7 +14,6 @@
 >  #include <linux/delay.h>
 >  #include <linux/dmi.h>
 >  #include <linux/err.h>
 > -#include <linux/io.h>

It probably makes more sense to drop the include from line 17 to keep
alphabetical ordering, but otherwise it looks good to.

With that fixed:

Acked-by: Peter Korsgaard <peter@korsgaard.com>
diff mbox series

Patch

diff --git a/drivers/platform/x86/barco-p50-gpio.c b/drivers/platform/x86/barco-p50-gpio.c
index f5c72e33f9ae..bb8ed8e95225 100644
--- a/drivers/platform/x86/barco-p50-gpio.c
+++ b/drivers/platform/x86/barco-p50-gpio.c
@@ -14,7 +14,6 @@ 
 #include <linux/delay.h>
 #include <linux/dmi.h>
 #include <linux/err.h>
-#include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/leds.h>
 #include <linux/module.h>