Skip to content

Commit

Permalink
i3c/master/mipi-i3c-hci: Specify HAS_IOMEM dependency
Browse files Browse the repository at this point in the history
The MIPI i3c HCI 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 enabled 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: 9ad9a52 ("i3c/master: introduce the mipi-i3c-hci driver")
Signed-off-by: David Gow <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
sulix authored and alexandrebelloni committed Feb 1, 2021
1 parent 5c8fe58 commit 9d909f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i3c/master/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ config DW_I3C_MASTER
config MIPI_I3C_HCI
tristate "MIPI I3C Host Controller Interface driver (EXPERIMENTAL)"
depends on I3C
depends on HAS_IOMEM
help
Support for hardware following the MIPI Aliance's I3C Host Controller
Interface specification.
Expand Down

0 comments on commit 9d909f1

Please sign in to comment.