From: Tom Rini <trini@konsulko.com>
Date: Thu, 26 Oct 2023 18:31:11 +0000 (-0400)
Subject: virtio: Make VIRTIO_NET depend on NETDEVICES
X-Git-Tag: v2025.01-rc5-pxa1908~582^2~36^2~47
X-Git-Url: http://git.dujemihanovic.xyz/img/static//%22brlog.php?a=commitdiff_plain;h=a8a53cfa8de0a75487fae2fad7643ae9e90c0195;p=u-boot.git

virtio: Make VIRTIO_NET depend on NETDEVICES

As VIRTIO_NET is the symbol for enabling network devices, make this
depend on NETDEVICES

Signed-off-by: Tom Rini <trini@konsulko.com>
---

diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
index 852f6735b6..1de68867d5 100644
--- a/drivers/virtio/Kconfig
+++ b/drivers/virtio/Kconfig
@@ -56,7 +56,7 @@ config VIRTIO_SANDBOX
 
 config VIRTIO_NET
 	bool "virtio net driver"
-	depends on VIRTIO
+	depends on VIRTIO && NETDEVICES
 	help
 	  This is the virtual net driver for virtio. It can be used with
 	  QEMU based targets.