diff options
author | Slark Xiao <slark_xiao@163.com> | 2021-08-31 10:40:25 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-08-31 08:36:38 -0700 |
commit | c3496da580b0fc10fdeba8f6a5e6aef4c78b5598 (patch) | |
tree | 4cbd627d643f94ff2648df8295235f9addee8d0d /drivers | |
parent | a9e7c3cedc2914f63cd135b75832b9bf850af782 (diff) |
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 <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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/litex/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/litex/Kconfig b/drivers/net/ethernet/litex/Kconfig index 265dba414b41..63bf01d28f0c 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. |