From: Uwe Kleine-König Date: Wed, 5 Feb 2020 14:00:02 +0000 (+0100) Subject: hwrng: imx-rngc - improve dependencies X-Git-Tag: v5.7-rc1~140^2~137 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fcdba3c33a4dfdc3dc3f2cce46aaf0d6fc1df6c1;p=thirdparty%2Fkernel%2Flinux.git 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: Uwe Kleine-König Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 914e293ba62be..ddbfa190caf4a 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -244,7 +244,8 @@ config HW_RANDOM_MXC_RNGA config HW_RANDOM_IMX_RNGC 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 ---help--- This driver provides kernel-side support for the Random Number