Skip to content

Commit

Permalink
power: avs: qcom-cpr: add unspecified HAS_IOMEM dependency
Browse files Browse the repository at this point in the history
Currently CONFIG_QCOM_CPR=y implicitly depends on CONFIG_HAS_IOMEM=y;
consequently, on architectures without IOMEM we get the following build
error:

/usr/bin/ld: drivers/power/avs/qcom-cpr.o: in function `cpr_probe':
drivers/power/avs/qcom-cpr.c:1690: undefined reference to `devm_ioremap_resource'

Fix the build error by adding the unspecified dependency.

Signed-off-by: Brendan Higgins <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
bjh83 authored and rafaeljw committed Jan 31, 2020
1 parent adef0ce commit db5a10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/avs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ menuconfig POWER_AVS

config QCOM_CPR
tristate "QCOM Core Power Reduction (CPR) support"
depends on POWER_AVS
depends on POWER_AVS && HAS_IOMEM
select PM_OPP
select REGMAP
help
Expand Down

0 comments on commit db5a10c

Please sign in to comment.