diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-04-08 08:36:37 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-04-16 08:40:13 -0400 |
commit | 2d9cab5194c89a0d20fb8dce09e9d3a7c85e8f37 (patch) | |
tree | 919209903db9ea617249981b7e084bb1f51376f8 /drivers/char/hw_random | |
parent | 0200161834534fb79df03eac47314607dabd58d8 (diff) |
hwrng: Fix a few driver dependencies and defaults
HW_RANDOM_ATMEL should not only default to ARCH_AT91, it should depend
on it. This driver is useless on other architectures.
Likewise, HW_RANDOM_EXYNOS should depend on ARCH_EXYNOS, as it it
useless on other architectures.
Also set the default to HW_RANDOM for the few architecture-specific
drivers which didn't have it yet, for consistency.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r-- | drivers/char/hw_random/Kconfig | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 1e9d23769281..58a15f28789f 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig | |||
@@ -64,8 +64,8 @@ config HW_RANDOM_AMD | |||
64 | 64 | ||
65 | config HW_RANDOM_ATMEL | 65 | config HW_RANDOM_ATMEL |
66 | tristate "Atmel Random Number Generator support" | 66 | tristate "Atmel Random Number Generator support" |
67 | depends on HAVE_CLK | 67 | depends on ARCH_AT91 && HAVE_CLK |
68 | default (HW_RANDOM && ARCH_AT91) | 68 | default HW_RANDOM |
69 | ---help--- | 69 | ---help--- |
70 | This driver provides kernel-side support for the Random Number | 70 | This driver provides kernel-side support for the Random Number |
71 | Generator hardware found on Atmel AT91 devices. | 71 | Generator hardware found on Atmel AT91 devices. |
@@ -232,6 +232,7 @@ config HW_RANDOM_TX4939 | |||
232 | config HW_RANDOM_MXC_RNGA | 232 | config HW_RANDOM_MXC_RNGA |
233 | tristate "Freescale i.MX RNGA Random Number Generator" | 233 | tristate "Freescale i.MX RNGA Random Number Generator" |
234 | depends on ARCH_HAS_RNGA | 234 | depends on ARCH_HAS_RNGA |
235 | default HW_RANDOM | ||
235 | ---help--- | 236 | ---help--- |
236 | This driver provides kernel-side support for the Random Number | 237 | This driver provides kernel-side support for the Random Number |
237 | Generator hardware found on Freescale i.MX processors. | 238 | Generator hardware found on Freescale i.MX processors. |
@@ -244,6 +245,7 @@ config HW_RANDOM_MXC_RNGA | |||
244 | config HW_RANDOM_NOMADIK | 245 | config HW_RANDOM_NOMADIK |
245 | tristate "ST-Ericsson Nomadik Random Number Generator support" | 246 | tristate "ST-Ericsson Nomadik Random Number Generator support" |
246 | depends on ARCH_NOMADIK | 247 | depends on ARCH_NOMADIK |
248 | default HW_RANDOM | ||
247 | ---help--- | 249 | ---help--- |
248 | This driver provides kernel-side support for the Random Number | 250 | This driver provides kernel-side support for the Random Number |
249 | Generator hardware found on ST-Ericsson SoCs (8815 and 8500). | 251 | Generator hardware found on ST-Ericsson SoCs (8815 and 8500). |
@@ -256,6 +258,7 @@ config HW_RANDOM_NOMADIK | |||
256 | config HW_RANDOM_PICOXCELL | 258 | config HW_RANDOM_PICOXCELL |
257 | tristate "Picochip picoXcell true random number generator support" | 259 | tristate "Picochip picoXcell true random number generator support" |
258 | depends on ARCH_PICOXCELL && PICOXCELL_PC3X3 | 260 | depends on ARCH_PICOXCELL && PICOXCELL_PC3X3 |
261 | default HW_RANDOM | ||
259 | ---help--- | 262 | ---help--- |
260 | This driver provides kernel-side support for the Random Number | 263 | This driver provides kernel-side support for the Random Number |
261 | Generator hardware found on Picochip PC3x3 and later devices. | 264 | Generator hardware found on Picochip PC3x3 and later devices. |
@@ -268,6 +271,7 @@ config HW_RANDOM_PICOXCELL | |||
268 | config HW_RANDOM_PPC4XX | 271 | config HW_RANDOM_PPC4XX |
269 | tristate "PowerPC 4xx generic true random number generator support" | 272 | tristate "PowerPC 4xx generic true random number generator support" |
270 | depends on PPC && 4xx | 273 | depends on PPC && 4xx |
274 | default HW_RANDOM | ||
271 | ---help--- | 275 | ---help--- |
272 | This driver provides the kernel-side support for the TRNG hardware | 276 | This driver provides the kernel-side support for the TRNG hardware |
273 | found in the security function of some PowerPC 4xx SoCs. | 277 | found in the security function of some PowerPC 4xx SoCs. |
@@ -305,7 +309,8 @@ config HW_RANDOM_POWERNV | |||
305 | 309 | ||
306 | config HW_RANDOM_EXYNOS | 310 | config HW_RANDOM_EXYNOS |
307 | tristate "EXYNOS HW random number generator support" | 311 | tristate "EXYNOS HW random number generator support" |
308 | depends on HAS_IOMEM && HAVE_CLK | 312 | depends on ARCH_EXYNOS |
313 | default HW_RANDOM | ||
309 | ---help--- | 314 | ---help--- |
310 | This driver provides kernel-side support for the Random Number | 315 | This driver provides kernel-side support for the Random Number |
311 | Generator hardware found on EXYNOS SOCs. | 316 | Generator hardware found on EXYNOS SOCs. |
@@ -331,6 +336,7 @@ config HW_RANDOM_TPM | |||
331 | config HW_RANDOM_MSM | 336 | config HW_RANDOM_MSM |
332 | tristate "Qualcomm MSM Random Number Generator support" | 337 | tristate "Qualcomm MSM Random Number Generator support" |
333 | depends on ARCH_MSM | 338 | depends on ARCH_MSM |
339 | default HW_RANDOM | ||
334 | ---help--- | 340 | ---help--- |
335 | This driver provides kernel-side support for the Random Number | 341 | This driver provides kernel-side support for the Random Number |
336 | Generator hardware found on Qualcomm MSM SoCs. | 342 | Generator hardware found on Qualcomm MSM SoCs. |