Skip to content

Commit

Permalink
net: ethernet: litex: Add the dependency on HAS_IOMEM
Browse files Browse the repository at this point in the history
[ Upstream commit 2427f03 ]

The LiteX driver uses devm io function API which
needs HAS_IOMEM enabled, so add the dependency on HAS_IOMEM.

Fixes: ee7da21 ("net: Add driver for LiteX's LiteETH network interface")
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Link: https://lore.kernel.org/r/20220208013308.6563-1-cai.huoqing@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
caihuoq authored and gregkh committed Mar 8, 2022
1 parent 3a3aa08 commit f510d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/litex/Kconfig
Expand Up @@ -17,7 +17,7 @@ if NET_VENDOR_LITEX

config LITEX_LITEETH
tristate "LiteX Ethernet support"
depends on OF
depends on OF && HAS_IOMEM
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 f510d64

Please sign in to comment.