]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: caam - Enabling multiple caam debug support for C29x platform
authorNitesh Narayan Lal <b44382@freescale.com>
Tue, 1 Jul 2014 14:24:54 +0000 (19:54 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 8 Jul 2014 13:06:36 +0000 (21:06 +0800)
In the current setup debug file system enables us to debug the operational
details for only one CAAM. This patch adds the support for debugging multiple
CAAM's.

Signed-off-by: Nitesh Narayan Lal <b44382@freescale.com>
Signed-off-by: Vakul Garg <b16394@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c

index 1d8e003d25825dacacee6bc4093221edd4d57c13..c6e9d3b2d50250e867d4b6b3d04c671ad9e66ecc 100644 (file)
@@ -588,7 +588,7 @@ static int caam_probe(struct platform_device *pdev)
         */
        perfmon = (struct caam_perfmon __force *)&ctrl->perfmon;
 
-       ctrlpriv->dfs_root = debugfs_create_dir("caam", NULL);
+       ctrlpriv->dfs_root = debugfs_create_dir(dev_name(dev), NULL);
        ctrlpriv->ctl = debugfs_create_dir("ctl", ctrlpriv->dfs_root);
 
        /* Controller-level - performance monitor counters */