Skip to content

Commit

Permalink
net: Add depends on OF_NET for LiteX's LiteETH
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
SlarkXiao authored and kuba-moo committed Aug 31, 2021
1 parent a9e7c3c commit c3496da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/litex/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c3496da

Please sign in to comment.