All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Mahoney <jeffm@suse.com>
To: Jonghwa Lee <jonghwa3.lee@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Stephen Boyd <sboyd@codeaurora.org>,
	Herbert Xu <herbert@gondor.hengli.com.au>,
	Linux Kernel Maling List <linux-kernel@vger.kernel.org>
Subject: [PATCH] exynos-rng: Depend on ARCH_EXYNOS
Date: Mon, 27 Aug 2012 17:02:23 -0400	[thread overview]
Message-ID: <503BE05F.40109@suse.com> (raw)

The exynos-rng device is only found on Samsung EXYNOS devices but has
dependencies that allow it to be built on other architectures. This
can result in build failures on powerpc due to a missing clk_devm_get.

This patch makes it depend on ARCH_EXYNOS.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
 drivers/char/hw_random/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -280,7 +280,7 @@ config HW_RANDOM_PSERIES
 
 config HW_RANDOM_EXYNOS
 	tristate "EXYNOS HW random number generator support"
-	depends on HW_RANDOM && HAS_IOMEM && HAVE_CLK
+	depends on HW_RANDOM && HAS_IOMEM && HAVE_CLK && ARCH_EXYNOS
 	---help---
 	  This driver provides kernel-side support for the Random Number
 	  Generator hardware found on EXYNOS SOCs.


-- 
Jeff Mahoney
SUSE Labs

             reply	other threads:[~2012-08-27 21:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27 21:02 Jeff Mahoney [this message]
2012-08-27 21:18 ` [PATCH] exynos-rng: Depend on ARCH_EXYNOS Stephen Boyd
2012-08-27 21:24   ` Mark Brown
2012-08-27 21:25   ` Jeff Mahoney
2012-08-27 21:37     ` Mark Brown
2012-08-27 21:58       ` Jeff Mahoney

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=503BE05F.40109@suse.com \
    --to=jeffm@suse.com \
    --cc=herbert@gondor.hengli.com.au \
    --cc=jonghwa3.lee@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sboyd@codeaurora.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.