Commit fa4dcc88 authored by YueHaibing's avatar YueHaibing Committed by Marc Zyngier

irq/qcom-mpm: Fix build error without MAILBOX

If MAILBOX is n, building fails:

drivers/irqchip/irq-qcom-mpm.o: In function `mpm_pd_power_off':
irq-qcom-mpm.c:(.text+0x174): undefined reference to `mbox_send_message'
irq-qcom-mpm.c:(.text+0x174): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `mbox_send_message'

Make QCOM_MPM depends on MAILBOX to fix this.

Fixes: a6199bb5 ("irqchip: Add Qualcomm MPM controller driver")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220317131956.30004-1-yuehaibing@huawei.com
parent 31231092
...@@ -433,6 +433,7 @@ config QCOM_PDC ...@@ -433,6 +433,7 @@ config QCOM_PDC
config QCOM_MPM config QCOM_MPM
tristate "QCOM MPM" tristate "QCOM MPM"
depends on ARCH_QCOM depends on ARCH_QCOM
depends on MAILBOX
select IRQ_DOMAIN_HIERARCHY select IRQ_DOMAIN_HIERARCHY
help help
MSM Power Manager driver to manage and configure wakeup MSM Power Manager driver to manage and configure wakeup
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment