瀏覽代碼

virtio: VIRTIO_RNG depends on DM_RNG

Add the missing Kconfig dependency and let VIRTIO_RNG default to yes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Heinrich Schuchardt 4 年之前
父節點
當前提交
ca3ba71b9e
共有 1 個文件被更改,包括 7 次插入5 次删除
  1. 7 5
      drivers/virtio/Kconfig

+ 7 - 5
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