crypto: ccp: Build the AMD secure processor driver only with AMD CPU support

"Linux Kernel Mailing List" <[email protected]> Sat, 10 Feb 2018 22:00:20 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/016db9c5c39fc7f1c766daf2083211318ef93d38
Commit:     016db9c5c39fc7f1c766daf2083211318ef93d38
Parent:     69eaedee411c1fc1cf123520897a96b7cf04d8a0
Refname:    refs/heads/master
Author:     Borislav Petkov <[email protected]>
AuthorDate: Mon Dec 4 10:57:26 2017 -0600
Committer:  Brijesh Singh <[email protected]>
CommitDate: Mon Dec 4 10:57:26 2017 -0600

    crypto: ccp: Build the AMD secure processor driver only with AMD CPU support
    
    This is AMD-specific hardware so present it in Kconfig only when AMD
    CPU support is enabled or on ARM64 where it is also used.
    
    Signed-off-by: Borislav Petkov <[email protected]>
    Signed-off-by: Brijesh Singh <[email protected]>
    Reviewed-by: Gary R Hook <[email protected]>
    Cc: Brijesh Singh <[email protected]>
    Cc: Tom Lendacky <[email protected]>
    Cc: Gary Hook <[email protected]>
    Cc: Herbert Xu <[email protected]>
    Cc: "David S. Miller" <[email protected]>
    Cc: [email protected]
---
 drivers/crypto/ccp/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig
index 6d626606b9c5..9c84f9838931 100644
--- a/drivers/crypto/ccp/Kconfig
+++ b/drivers/crypto/ccp/Kconfig
@@ -1,5 +1,6 @@
 config CRYPTO_DEV_CCP_DD
 	tristate "Secure Processor device driver"
+	depends on CPU_SUP_AMD || ARM64
 	default m
 	help
 	  Provides AMD Secure Processor device driver.
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html