]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ethernet: litex: Add the dependency on HAS_IOMEM
authorCai Huoqing <cai.huoqing@linux.dev>
Tue, 8 Feb 2022 01:33:08 +0000 (09:33 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 04:43:40 +0000 (20:43 -0800)
The LiteX driver uses devm io function API which
needs HAS_IOMEM enabled, so add the dependency on HAS_IOMEM.

Fixes: ee7da21ac4c3 ("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>
drivers/net/ethernet/litex/Kconfig

index f99adbf26ab4e355914d774e873a7b893f6b530c..04345b929d8e5805cb7ab39660cfa908695ff5db 100644 (file)
@@ -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.