Skip to contentSkip to conversation

drivers: watchdog: Remove duplicate include of kernel.h

PATCH In review Wan Jiabing 2 participants 2 messages Mar 25, 2021 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 drivers: watchdog: Remove duplicate include of kernel.h

linux/kernel.h has been included. Remove the duplicate. Reorder include files to be in alphabetic order.

---
Changelog:
v3:
- Reorder include files to be in alphabetic order.

v2:
- Remove the duplicate which won't make worse.

---
 drivers/watchdog/dw_wdt.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/watchdog/dw_wdt.c +4 -5
index 32d0e1781e63..cd578843277e 100644
@@ -13,22 +13,21 @@
  */
 
 #include <linux/bitops.h>
-#include <linux/limits.h>
-#include <linux/kernel.h>
 #include <linux/clk.h>
+#include <linux/debugfs.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
+#include <linux/limits.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/interrupt.h>
 #include <linux/of.h>
-#include <linux/pm.h>
 #include <linux/platform_device.h>
+#include <linux/pm.h>
 #include <linux/reset.h>
 #include <linux/watchdog.h>
-#include <linux/debugfs.h>
 
 #define WDOG_CONTROL_REG_OFFSET		    0x00
 #define WDOG_CONTROL_REG_WDT_EN_MASK	    0x01
Signature · 1 line
2.25.1
maintainer Reviewed-by on v3 1/1
#1 lore raw
Quoted 4 lines · Wan Jiabing

linux/kernel.h has been included. Remove the duplicate. Reorder include files to be in alphabetic order.

Quoted 43 lines

---
Changelog:
v3:
- Reorder include files to be in alphabetic order.

v2:
- Remove the duplicate which won't make worse.

---
 drivers/watchdog/dw_wdt.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/watchdog/dw_wdt.c +4 -5
index 32d0e1781e63..cd578843277e 100644
@@ -13,22 +13,21 @@
  */
 
 #include <linux/bitops.h>
-#include <linux/limits.h>
-#include <linux/kernel.h>
 #include <linux/clk.h>
+#include <linux/debugfs.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
+#include <linux/limits.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/interrupt.h>
 #include <linux/of.h>
-#include <linux/pm.h>
 #include <linux/platform_device.h>
+#include <linux/pm.h>
 #include <linux/reset.h>
 #include <linux/watchdog.h>
-#include <linux/debugfs.h>
 
 #define WDOG_CONTROL_REG_OFFSET		    0x00
 #define WDOG_CONTROL_REG_WDT_EN_MASK	    0x01