This driver needs io memory but not all archs offer it.

Fixes the following build error:
drivers/built-in.o: In function `rockchip_mbox_probe':
rockchip-mailbox.c:(.text+0x4b19c): undefined reference to 
`devm_ioremap_resource'

Cc: Jassi Brar <jassisinghb...@gmail.com>
Signed-off-by: Richard Weinberger <rich...@nod.at>
---
 drivers/mailbox/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig
index 5305923..5ee207c 100644
--- a/drivers/mailbox/Kconfig
+++ b/drivers/mailbox/Kconfig
@@ -45,6 +45,7 @@ config OMAP_MBOX_KFIFO_SIZE
 
 config ROCKCHIP_MBOX
        bool "Rockchip Soc Intergrated Mailbox Support"
+       depends on HAS_IOMEM
        depends on ARCH_ROCKCHIP || COMPILE_TEST
        help
          This driver provides support for inter-processor communication
-- 
1.8.4.5

Reply via email to