crypto: caam - fix build warning when DEBUG_FS not configured
authorKim Phillips <kim.phillips@freescale.com>
Sun, 5 Jun 2011 21:42:54 +0000 (16:42 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2011 23:44:05 +0000 (07:44 +0800)
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>
drivers/crypto/caam/ctrl.c

index 9009713..fc2d9ed 100644 (file)
@@ -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)