iommu: shmobile: Enable driver compilation with COMPILE_TEST
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 27 Nov 2013 01:18:26 +0000 (02:18 +0100)
committerJoerg Roedel <joro@8bytes.org>
Tue, 7 Jan 2014 14:10:11 +0000 (15:10 +0100)
This helps increasing build testing coverage.

The driver doesn't compile on non-ARM platforms due to usage of the ARM
DMA IOMMU API, restrict compilation to ARM.

Cc: Joerg Roedel <joro@8bytes.org>
Cc: iommu@lists.linux-foundation.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/Kconfig

index 3e7fdbb4916b1c810314acb77fe9f3b0a2c7cdf1..79bbc21c1d01671b6c7d289c3c1ff44db449e4ec 100644 (file)
@@ -207,6 +207,7 @@ config SHMOBILE_IOMMU
        bool "IOMMU for Renesas IPMMU/IPMMUI"
        default n
        depends on ARM
+       depends on SH_MOBILE || COMPILE_TEST
        select IOMMU_API
        select ARM_DMA_USE_IOMMU
        select SHMOBILE_IPMMU