Commit fcdba3c3 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Herbert Xu

hwrng: imx-rngc - improve dependencies

The imx-rngc driver binds to devices that are compatible to
"fsl,imx25-rngb". Grepping through the device tree sources suggests this
only exists on i.MX25. So restrict dependencies to configs that have
this SoC enabled, but allow compile testing. For the latter additional
dependencies for clk and readl/writel are necessary.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f426faac
...@@ -244,7 +244,8 @@ config HW_RANDOM_MXC_RNGA ...@@ -244,7 +244,8 @@ config HW_RANDOM_MXC_RNGA
config HW_RANDOM_IMX_RNGC config HW_RANDOM_IMX_RNGC
tristate "Freescale i.MX RNGC Random Number Generator" tristate "Freescale i.MX RNGC Random Number Generator"
depends on ARCH_MXC depends on HAS_IOMEM && HAVE_CLK
depends on SOC_IMX25 || COMPILE_TEST
default HW_RANDOM default HW_RANDOM
---help--- ---help---
This driver provides kernel-side support for the Random Number This driver provides kernel-side support for the Random Number
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment