diff mbox series

[1/1] virtio: VIRTIO_RNG depends on DM_RNG

Message ID 20200531090752.449779-1-xypron.glpk@gmx.de
State Accepted
Commit ca3ba71b9eeec531923b3d2a82a2a6a89490bcf5
Headers show
Series [1/1] virtio: VIRTIO_RNG depends on DM_RNG | expand

Commit Message

Heinrich Schuchardt May 31, 2020, 9:07 a.m. UTC
Add the missing Kconfig dependency and let VIRTIO_RNG default to yes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 drivers/virtio/Kconfig | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

--
2.26.2

Comments

Simon Glass May 31, 2020, 4:14 p.m. UTC | #1
On Sun, 31 May 2020 at 03:08, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Add the missing Kconfig dependency and let VIRTIO_RNG default to yes.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  drivers/virtio/Kconfig | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>
diff mbox series

Patch

diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
index 2e3dd3bad0..e800720657 100644
--- a/drivers/virtio/Kconfig
+++ b/drivers/virtio/Kconfig
@@ -60,9 +60,11 @@  config VIRTIO_BLK
 	  QEMU based targets.

 config VIRTIO_RNG
-       bool "virtio rng driver"
-       depends on VIRTIO
-       help
-         This is the virtual random number generator driver. It can be used
-	 with Qemu based targets.
+	bool "virtio rng driver"
+	depends on DM_RNG
+	depends on VIRTIO
+	default y
+	help
+	  This is the virtual random number generator driver. It can be used
+	  with QEMU based targets.
 endmenu