From: Slark Xiao Date: Tue, 31 Aug 2021 02:40:25 +0000 (+0800) Subject: net: Add depends on OF_NET for LiteX's LiteETH X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c3496da580b0fc10fdeba8f6a5e6aef4c78b5598;p=linux.git net: Add depends on OF_NET for LiteX's LiteETH Current settings may produce a build error when CONFIG_OF_NET is disabled. The CONFIG_OF_NET controls a headfile and some functions in . Signed-off-by: Slark Xiao Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/litex/Kconfig b/drivers/net/ethernet/litex/Kconfig index 265dba414b41e..63bf01d28f0cf 100644 --- a/drivers/net/ethernet/litex/Kconfig +++ b/drivers/net/ethernet/litex/Kconfig @@ -17,6 +17,7 @@ if NET_VENDOR_LITEX config LITEX_LITEETH tristate "LiteX Ethernet support" + depends on OF_NET help If you wish to compile a kernel for hardware with a LiteX LiteEth device then you should answer Y to this.