MLK-21314: crypto: caam: Fix double creation of debugfs main folder
authorFranck LENORMAND <franck.lenormand@nxp.com>
Thu, 11 Apr 2019 13:34:43 +0000 (15:34 +0200)
committerFranck LENORMAND <franck.lenormand@nxp.com>
Mon, 6 May 2019 10:27:00 +0000 (12:27 +0200)
commitc4186d45cc15e9ef7d2c2b478b9b9702fa863295
treea65e8cf2ef1144e796eb2e30ec2aaf8126607f6e
parentc6efb33cc5a05fcfe30411e7ba7720b00dfa2ae9
MLK-21314: crypto: caam: Fix double creation of debugfs main folder

The creation of the root directory for the control driver of
the CAAM was done in enable_jobrings() and in init_debugfs()
stored in the variable dfs_root.

Both calls uses the same arguments hence the second creation
overrides the first one resulting in 2 entries in the debug FS
with the first one empty.

This patch removes the call from enable_jobrings().

The debug folder can be found in /sys/kernel/debug/*caam/ctl.

Fixes: de9807e6e0de (MLK-15473-1: crypto: caam: Add CAAM driver support for iMX8 soc family)
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
drivers/crypto/caam/ctrl.c