From: Randy Dunlap <rdunlap@infradead.org>
To: LKML <linux-kernel@vger.kernel.org>,
Mark Brown <broonie@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>
Cc: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Subject: [PATCH] regulator: bd71837: add <linux/of.h> to fix build errors
Date: Thu, 25 Oct 2018 15:48:24 -0700 [thread overview]
Message-ID: <cf89bc2f-f7c0-0ed6-38d8-0c47a05ed706@infradead.org> (raw)
From: Randy Dunlap <rdunlap@infradead.org>
Fix build error due to missing header file:
drivers/regulator/bd71837-regulator.c:242:3: error: implicit declaration of function 'of_match_ptr' [-Werror=implicit-function-declaration]
Fixes: ba08799e90b5 ("regulator: bd71837: BD71837 PMIC regulator driver")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
---
drivers/regulator/bd71837-regulator.c | 1 +
1 file changed, 1 insertion(+)
--- lnx-419.orig/drivers/regulator/bd71837-regulator.c
+++ lnx-419/drivers/regulator/bd71837-regulator.c
@@ -9,6 +9,7 @@
#include <linux/kernel.h>
#include <linux/mfd/rohm-bd718x7.h>
#include <linux/module.h>
+#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
next reply other threads:[~2018-10-25 22:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-25 22:48 Randy Dunlap [this message]
2018-10-26 6:02 ` [PATCH] regulator: bd71837: add <linux/of.h> to fix build errors Vaittinen, Matti
2018-11-07 16:38 ` Randy Dunlap
2018-11-08 6:50 ` Matti Vaittinen
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=cf89bc2f-f7c0-0ed6-38d8-0c47a05ed706@infradead.org \
--to=rdunlap@infradead.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matti.vaittinen@fi.rohmeurope.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).