diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2011-06-05 21:42:54 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-06-29 23:44:05 (GMT) |
commit | 23457bc9566be64f33afdc159aadd42712673e0b (patch) | |
tree | 03a1dd179212ff8dec22589a7aa95011384f9b49 /drivers/crypto/caam/ctrl.c | |
parent | cfa2b54eca28103d07e5334aa06b78321fbe1d9a (diff) | |
download | linux-fsl-qoriq-23457bc9566be64f33afdc159aadd42712673e0b.tar.xz |
crypto: caam - fix build warning when DEBUG_FS not configured
drivers/crypto/caam/ctrl.c: In function 'caam_probe':
drivers/crypto/caam/ctrl.c:55:23: warning: unused variable 'perfmon'
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/ctrl.c')
-rw-r--r-- | drivers/crypto/caam/ctrl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 9009713..fc2d9ed 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -52,9 +52,11 @@ static int caam_probe(struct platform_device *pdev) struct caam_ctrl __iomem *ctrl; struct caam_full __iomem *topregs; struct caam_drv_private *ctrlpriv; - struct caam_perfmon *perfmon; struct caam_deco **deco; u32 deconum; +#ifdef CONFIG_DEBUG_FS + struct caam_perfmon *perfmon; +#endif ctrlpriv = kzalloc(sizeof(struct caam_drv_private), GFP_KERNEL); if (!ctrlpriv) |