msm: adsprpc: remove excesive logging from debugfs during smmu probing

During smmu probing same debugfs file is being created for each probe.
Move debugfs file creation from smmu probing to device init call.

Change-Id: Iebb6450744d507278d4f5c3283638399987d2a29
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
This commit is contained in:
Edgar Flores 2020-04-30 10:59:16 -07:00
commit 8096421565

View file

@ -5126,8 +5126,6 @@ static int fastrpc_cb_probe(struct device *dev)
}
chan->sesscount++;
debugfs_global_file = debugfs_create_file("global", 0644, debugfs_root,
NULL, &debugfs_fops);
bail:
return err;
}
@ -5375,6 +5373,8 @@ static int __init fastrpc_device_init(void)
int err = 0, i;
debugfs_root = debugfs_create_dir("adsprpc", NULL);
debugfs_global_file = debugfs_create_file("global", 0644, debugfs_root,
NULL, &debugfs_fops);
memset(me, 0, sizeof(*me));
fastrpc_init(me);
me->dev = NULL;