[PATCH] exynos-rng: Depend on ARCH_EXYNOS

From: Jeff Mahoney
Date: Mon Aug 27 2012 - 17:01:47 EST


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@xxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/