All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Boris Brezillon <boris.brezillon@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	linux-mtd@lists.infradead.org
Cc: David Woodhouse <dwmw2@infradead.org>,
	Brian Norris <computersforpeace@gmail.com>,
	Marek Vasut <marek.vasut@gmail.com>,
	Arnd Bergmann <arnd@arndb.de>
Subject: [PATCH v3 4/4] mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y
Date: Wed, 18 Jul 2018 10:56:52 +0200	[thread overview]
Message-ID: <20180718085652.30391-5-boris.brezillon@bootlin.com> (raw)
In-Reply-To: <20180718085652.30391-1-boris.brezillon@bootlin.com>

It just makes NAND maintainers' life easier by allowing them to
compile-test this driver without having PLAT_ORION enabled.

We add a dependency on HAS_IOMEM to make sure the driver compiles
correctly.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
 drivers/mtd/nand/raw/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 03314ab8cd4d..f944cf0d1017 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -382,7 +382,8 @@ config MTD_NAND_PLATFORM
 
 config MTD_NAND_ORION
 	tristate "NAND Flash support for Marvell Orion SoC"
-	depends on PLAT_ORION
+	depends on PLAT_ORION || COMPILE_TEST
+	depends on HAS_IOMEM
 	help
 	  This enables the NAND flash controller on Orion machines.
 
-- 
2.14.1

  parent reply	other threads:[~2018-07-18  8:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-18  8:56 [PATCH v3 0/4] mtd: rawnand: Improve compile-test coverage Boris Brezillon
2018-07-18  8:56 ` [PATCH v3 1/4] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-18  8:56 ` [PATCH v3 2/4] mtd: rawnand: orion: Avoid direct inclusion of asm headers Boris Brezillon
2018-07-18  8:56 ` [PATCH v3 3/4] mtd: rawnand: orion: Handle cases where __LINUX_ARM_ARCH__ is not defined Boris Brezillon
2018-07-18  8:56 ` Boris Brezillon [this message]
2018-07-18 21:40 ` [PATCH v3 0/4] mtd: rawnand: Improve compile-test coverage Miquel Raynal
2018-08-01  8:35   ` Miquel Raynal

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=20180718085652.30391-5-boris.brezillon@bootlin.com \
    --to=boris.brezillon@bootlin.com \
    --cc=arnd@arndb.de \
    --cc=computersforpeace@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marek.vasut@gmail.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    /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.