net: Add depends on OF_NET for LiteX's LiteETH
authorSlark Xiao <slark_xiao@163.com>
Tue, 31 Aug 2021 02:40:25 +0000 (10:40 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 31 Aug 2021 15:36:38 +0000 (08:36 -0700)
Current settings may produce a build error when
CONFIG_OF_NET is disabled. The CONFIG_OF_NET controls
a headfile <linux/of.h> and some functions
 in <linux/of_net.h>.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/litex/Kconfig

index 265dba414b41ec22ae9252d7cfed7cb29a3fd83b..63bf01d28f0cf0844b195767458a4e9b0afde5ff 100644 (file)
@@ -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.