From: Samuel Holland Date: Sat, 2 Jul 2022 03:25:20 +0000 (-0500) Subject: soc: sunxi: mbus: Only build the driver on ARM/ARM64 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=db1bfbd60e325abddc824c49b2fd45a39a10b2f5;p=linux.git soc: sunxi: mbus: Only build the driver on ARM/ARM64 This driver exists as a workaround for old devicetrees which are missing interconnects properties, so it is only useful for those specific platforms, which all happen to be ARM or ARM64. This solves the issue that the driver fails to build on RISC-V, where PHYS_OFFSET is not defined. Signed-off-by: Samuel Holland Reviewed-by: Jernej Skrabec Signed-off-by: Jernej Skrabec Link: https://lore.kernel.org/r/20220702032520.22129-1-samuel@sholland.org --- diff --git a/drivers/soc/sunxi/Kconfig b/drivers/soc/sunxi/Kconfig index 1fef0e7110561..8aecbc9b19763 100644 --- a/drivers/soc/sunxi/Kconfig +++ b/drivers/soc/sunxi/Kconfig @@ -6,6 +6,7 @@ config SUNXI_MBUS bool default ARCH_SUNXI + depends on ARM || ARM64 help Say y to enable the fixups needed to support the Allwinner MBUS DMA quirks.