firmware: intel_stratix10_service: add hardware dependency
authorRichard Gong <richard.gong@intel.com>
Wed, 23 Jan 2019 18:06:05 +0000 (12:06 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 18:25:24 +0000 (19:25 +0100)
Add a Kconfig dependency to ensure Intel Stratix10 service layer driver
can be built only on the platform that supports it.

Signed-off-by: Richard Gong <richard.gong@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/Kconfig

index f754578..7e5491a 100644 (file)
@@ -218,7 +218,7 @@ config FW_CFG_SYSFS_CMDLINE
 
 config INTEL_STRATIX10_SERVICE
        tristate "Intel Stratix10 Service Layer"
-       depends on HAVE_ARM_SMCCC
+       depends on (ARCH_STRATIX10 && HAVE_ARM_SMCCC) || COMPILE_TEST
        default n
        help
          Intel Stratix10 service layer runs at privileged exception level,