From: Corentin Labbe <clabbe@baylibre.com>
To: Zubair.Kakakhel@imgtec.com, gregkh@linuxfoundation.org,
alex@alex-smith.me.uk
Cc: linux-kernel@vger.kernel.org, Corentin Labbe <clabbe@baylibre.com>
Subject: [PATCH] memory: jz4780-nemc: build depend on OF
Date: Mon, 23 Jul 2018 11:38:43 +0000 [thread overview]
Message-ID: <1532345923-28811-1-git-send-email-clabbe@baylibre.com> (raw)
jz4780-nemc use of_ functions, so it needs to depend on OF
This fix the following build failure on x86
drivers/memory/jz4780-nemc.c: In function ‘jz4780_nemc_num_banks’:
drivers/memory/jz4780-nemc.c:72:10: error: implicit declaration of function ‘of_read_number’ [-Werror=implicit-function-declaration]
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
drivers/memory/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
index a642552..faa1a23 100644
--- a/drivers/memory/Kconfig
+++ b/drivers/memory/Kconfig
@@ -124,6 +124,7 @@ config JZ4780_NEMC
default y
depends on MACH_JZ4780 || COMPILE_TEST
depends on HAS_IOMEM
+ depends on OF
help
This driver is for the NAND/External Memory Controller (NEMC) in
the Ingenic JZ4780. This controller is used to handle external
--
2.7.4
next reply other threads:[~2018-07-23 11:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-23 11:38 Corentin Labbe [this message]
2018-07-23 15:35 ` [PATCH] memory: jz4780-nemc: build depend on OF Randy Dunlap
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=1532345923-28811-1-git-send-email-clabbe@baylibre.com \
--to=clabbe@baylibre.com \
--cc=Zubair.Kakakhel@imgtec.com \
--cc=alex@alex-smith.me.uk \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.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 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).