From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! mtd: nand: move to drivers/mtd/nand/raw/
Date: Wed, 24 Apr 2024 08:41:56 +0200 [thread overview]
Message-ID: <20240424064156.3609113-1-a.fatoum@pengutronix.de> (raw)
mtd: nand: align IS_ENABLED(symbol) for header stub with Makefile
drivers/mtd/nand/Makefile builds nand-bb.o when CONFIG_MTD_NAND_CORE
is defined. We need to use the same symbol in the header to avoid
breakage when CONFIG_MTD_RAW_NAND is deselected.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
include/nand.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/nand.h b/include/nand.h
index 84f5a9671410..4fb52e9f82d5 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -4,7 +4,7 @@
struct nand_bb;
-#ifdef CONFIG_MTD_RAW_NAND
+#ifdef CONFIG_MTD_NAND_CORE
int dev_add_bb_dev(const char *filename, const char *name);
int dev_remove_bb_dev(const char *name);
struct cdev *mtd_add_bb(struct mtd_info *mtd, const char *name);
--
2.39.2
next reply other threads:[~2024-04-24 6:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 6:41 Ahmad Fatoum [this message]
2024-04-25 7:41 ` Sascha Hauer
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=20240424064156.3609113-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.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