Skip to content

Commit

Permalink
soc: litex: Properly depend on HAS_IOMEM
Browse files Browse the repository at this point in the history
The LiteX SOC controller driver makes use of IOMEM functions like
devm_platform_ioremap_resource(), which are only available if
CONFIG_HAS_IOMEM is defined.

This causes the driver to be enable under make ARCH=um allyesconfig,
even though it won't build.

By adding a dependency on HAS_IOMEM, the driver will not be enabled on
architectures which don't support it.

Fixes: 22447a9 ("drivers/soc/litex: add LiteX SoC Controller driver")
Signed-off-by: David Gow <davidgow@google.com>
[shorne@gmail.com: Fix typo in commit message pointed out in review]
Signed-off-by: Stafford Horne <shorne@gmail.com>
  • Loading branch information
sulix authored and stffrdhrn committed Jan 29, 2021
1 parent 6ee1d74 commit 1bea2a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/soc/litex/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ config LITEX
config LITEX_SOC_CONTROLLER
tristate "Enable LiteX SoC Controller driver"
depends on OF || COMPILE_TEST
depends on HAS_IOMEM
select LITEX
help
This option enables the SoC Controller Driver which verifies
Expand Down

0 comments on commit 1bea2a9

Please sign in to comment.