Fix compilation problem for mt7621_wdt.c and rt2880_wdt.c
Subsystems (2)
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")
Signed-off-by NeilBrown <[email protected]>
--- drivers/watchdog/mt7621_wdt.c | 1 + drivers/watchdog/rt2880_wdt.c | 1 + 2 files changed, 2 insertions(+)
drivers/watchdog/mt7621_wdt.c +1 -0
@@ -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
@@ -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
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")Signed-off-by NeilBrown <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
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@@ -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@@ -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