aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam/Makefile
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2020-08-06 21:09:49 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-08-21 14:47:49 +1000
commitabd9875497ba47e198fb565f11d5f332eeb08ab3 (patch)
tree1c3a82a33daaa53669343e25e0bc6731bfacf7c8 /drivers/crypto/caam/Makefile
parenthwrng: optee - fix wait use case (diff)
downloadlinux-dev-abd9875497ba47e198fb565f11d5f332eeb08ab3.tar.xz
linux-dev-abd9875497ba47e198fb565f11d5f332eeb08ab3.zip
crypto: caam - Move debugfs fops into standalone file
Currently the debugfs fops are defined in caam/intern.h. This causes problems because it creates identical static functions and variables in multiple files. It also creates warnings when those files don't use the fops. This patch moves them into a standalone file, debugfs.c. It also removes unnecessary uses of ifdefs on CONFIG_DEBUG_FS. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> [Moved most of debugfs-related operations into debugfs.c.] Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/Makefile')
-rw-r--r--drivers/crypto/caam/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/caam/Makefile b/drivers/crypto/caam/Makefile
index 68d5cc0f28e2..3570286eb9ce 100644
--- a/drivers/crypto/caam/Makefile
+++ b/drivers/crypto/caam/Makefile
@@ -27,6 +27,8 @@ ifneq ($(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI),)
ccflags-y += -DCONFIG_CAAM_QI
endif
+caam-$(CONFIG_DEBUG_FS) += debugfs.o
+
obj-$(CONFIG_CRYPTO_DEV_FSL_DPAA2_CAAM) += dpaa2_caam.o
dpaa2_caam-y := caamalg_qi2.o dpseci.o