Skip to content

Commit

Permalink
fpga: Specify HAS_IOMEM dependency for FPGA_DFL
Browse files Browse the repository at this point in the history
Because dfl.c uses the 'devm_ioremap', 'devm_iounmap',
'devm_ioremap_resource', and 'devm_platform_ioremap_resource'
functions, it should depend on HAS_IOMEM.

This fixes make allyesconfig under UML (ARCH=um), which doesn't provide
HAS_IOMEM.

[[email protected]: Removed "drivers: " in commit message]
Fixes: 89eb35e ("fpga: dfl: map feature mmio resources in their own feature drivers")
Signed-off-by: David Gow <[email protected]>
Signed-off-by: Moritz Fischer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
sulix authored and gregkh committed Dec 1, 2020
1 parent a71464d commit 1a16af3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/fpga/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ config FPGA_DFL
tristate "FPGA Device Feature List (DFL) support"
select FPGA_BRIDGE
select FPGA_REGION
depends on HAS_IOMEM
help
Device Feature List (DFL) defines a feature list structure that
creates a linked list of feature headers within the MMIO space
Expand Down

0 comments on commit 1a16af3

Please sign in to comment.