From 8096421565179185c6ca16b8a05f0ec93c64d295 Mon Sep 17 00:00:00 2001 From: Edgar Flores Date: Thu, 30 Apr 2020 10:59:16 -0700 Subject: [PATCH] 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 --- drivers/char/adsprpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index f41acc09c08d..47ee402900dd 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -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;