Skip to contentSkip to conversation

Fix compilation problem for mt7621_wdt.c and rt2880_wdt.c

PATCH In review NeilBrown 2 participants 2 messages Dec 30, 2018

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 Fix compilation problem for mt7621_wdt.c and rt2880_wdt.c

These files need
#include <linux/mod_devicetable.h>
to compile correctly.

Fixes ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")
---
 drivers/watchdog/mt7621_wdt.c | 1 +
 drivers/watchdog/rt2880_wdt.c | 1 +
 2 files changed, 2 insertions(+)
drivers/watchdog/mt7621_wdt.c +1 -0
index 5c4a764717c4..81208cd3f4ec 100644
@@ -17,6 +17,7 @@
 #include <linux/watchdog.h>
 #include <linux/moduleparam.h>
 #include <linux/platform_device.h>
+#include <linux/mod_devicetable.h>
 
 #include <asm/mach-ralink/ralink_regs.h>
 
drivers/watchdog/rt2880_wdt.c +1 -0
index 98967f0a7d10..db7c57d82cfd 100644
@@ -18,6 +18,7 @@
 #include <linux/watchdog.h>
 #include <linux/moduleparam.h>
 #include <linux/platform_device.h>
+#include <linux/mod_devicetable.h>
 
 #include <asm/mach-ralink/ralink_regs.h>
 
Signature · 1 line
2.14.0.rc0.dirty
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · NeilBrown

These files need
#include <linux/mod_devicetable.h>
to compile correctly.

Fixes ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")
Quoted 32 lines
---
 drivers/watchdog/mt7621_wdt.c | 1 +
 drivers/watchdog/rt2880_wdt.c | 1 +
 2 files changed, 2 insertions(+)
drivers/watchdog/mt7621_wdt.c +1 -0
index 5c4a764717c4..81208cd3f4ec 100644
@@ -17,6 +17,7 @@
 #include <linux/watchdog.h>
 #include <linux/moduleparam.h>
 #include <linux/platform_device.h>
+#include <linux/mod_devicetable.h>
 
 #include <asm/mach-ralink/ralink_regs.h>
 
drivers/watchdog/rt2880_wdt.c +1 -0
index 98967f0a7d10..db7c57d82cfd 100644
@@ -18,6 +18,7 @@
 #include <linux/watchdog.h>
 #include <linux/moduleparam.h>
 #include <linux/platform_device.h>
+#include <linux/mod_devicetable.h>
 
 #include <asm/mach-ralink/ralink_regs.h>
 
Signature · 1 line
2.14.0.rc0.dirty