[PATCH] ARM: fix watchdog build failure in s3c2410 platform
Paul Gortmaker
paul.gortmaker at windriver.com
Thu May 3 18:19:25 EDT 2012
Commit 4c1134cc961f825370dd9f84ce0169bd0ed97957 (linux-next)
"watchdog: s3c2410-wdt: Use of_match_ptr()."
caused a compile failure because of a missing header include:
drivers/watchdog/s3c2410_wdt.c:517:3: error: implicit declaration of
function 'of_match_ptr' [-Werror=implicit-function-declaration]
Cc: Wim Van Sebroeck <wim at iguana.be>
Signed-off-by: Paul Gortmaker <paul.gortmaker at windriver.com>
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
index 04e5a6d..a76f89e 100644
--- a/drivers/watchdog/s3c2410_wdt.c
+++ b/drivers/watchdog/s3c2410_wdt.c
@@ -37,6 +37,7 @@
#include <linux/clk.h>
#include <linux/uaccess.h>
#include <linux/io.h>
+#include <linux/of.h>
#include <linux/cpufreq.h>
#include <linux/slab.h>
#include <linux/err.h>
--
1.7.9.1
More information about the linux-arm-kernel
mailing list