From: "René van Dorst" <opensource-91nzXlUTePbQT0dZR+AlfA@public.gmane.org>
To: linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: "René van Dorst" <opensource-91nzXlUTePbQT0dZR+AlfA@public.gmane.org>
Subject: [PATCH] watchdog: mt7621: Fix compiler error, missing include
Date: Mon, 14 Jan 2019 22:17:19 +0100 [thread overview]
Message-ID: <20190114211719.11461-1-opensource@vdorst.com> (raw)
drivers/watchdog/mt7621_wdt.c:174:34: error: array type has incomplete element type 'struct of_device_id'
static const struct of_device_id mt7621_wdt_match[] = {
^~~~~~~~~~~~~~~~
drivers/watchdog/mt7621_wdt.c:175:4: error: field name not in record or union initializer
{ .compatible = "mediatek,mt7621-wdt" },
^
drivers/watchdog/mt7621_wdt.c:175:4: note: (near initialization for 'mt7621_wdt_match')
drivers/watchdog/mt7621_wdt.c:174:34: warning: 'mt7621_wdt_match' defined but not used [-Wunused-variable]
static const struct of_device_id mt7621_wdt_match[] = {
^~~~~~~~~~~~~~~~
Signed-off-by: René van Dorst <opensource@vdorst.com>
---
drivers/watchdog/mt7621_wdt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/watchdog/mt7621_wdt.c b/drivers/watchdog/mt7621_wdt.c
index 5c4a764717c4..a3be7db9d76f 100644
--- a/drivers/watchdog/mt7621_wdt.c
+++ b/drivers/watchdog/mt7621_wdt.c
@@ -16,6 +16,7 @@
#include <linux/kernel.h>
#include <linux/watchdog.h>
#include <linux/moduleparam.h>
+#include <linux/of.h>
#include <linux/platform_device.h>
#include <asm/mach-ralink/ralink_regs.h>
--
2.19.1
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
next reply other threads:[~2019-01-14 21:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-14 21:17 René van Dorst [this message]
[not found] ` <20190114211719.11461-1-opensource-91nzXlUTePbQT0dZR+AlfA@public.gmane.org>
2019-01-15 15:16 ` [PATCH] watchdog: mt7621: Fix compiler error, missing include Matthias Brugger
2019-01-15 15:16 ` Matthias Brugger
[not found] ` <a8b870f2-a50d-144e-cdca-b8a95d48846b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-01-15 15:29 ` René van Dorst
2019-01-15 15:29 ` René van Dorst
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190114211719.11461-1-opensource@vdorst.com \
--to=opensource-91nzxlutepbqt0dzr+alfa@public.gmane.org \
--cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.