mfd: wcd9xxx: disable slimbus register access for debugfs
This patch disables default slimbus access exposed through debugfs. Bug: 67430947 Change-Id: Iaf1b7cdf638dbc6e6de3681b8418f1840b94ccad Signed-off-by: David Lin <dtwlin@google.com>
This commit is contained in:
parent
9643278ce2
commit
8860a743e9
1 changed files with 3 additions and 3 deletions
|
@ -603,7 +603,7 @@ static void wcd9xxx_device_exit(struct wcd9xxx *wcd9xxx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#if defined(CONFIG_DEBUG_FS) && defined(WCD9XXX_CORE_DEBUG)
|
||||||
struct wcd9xxx *debugCodec;
|
struct wcd9xxx *debugCodec;
|
||||||
|
|
||||||
static struct dentry *debugfs_wcd9xxx_dent;
|
static struct dentry *debugfs_wcd9xxx_dent;
|
||||||
|
@ -1392,7 +1392,7 @@ static int wcd9xxx_slim_probe(struct slim_device *slim)
|
||||||
__func__, ret);
|
__func__, ret);
|
||||||
goto err_slim_add;
|
goto err_slim_add;
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#if defined(CONFIG_DEBUG_FS) && defined(WCD9XXX_CORE_DEBUG)
|
||||||
debugCodec = wcd9xxx;
|
debugCodec = wcd9xxx;
|
||||||
|
|
||||||
debugfs_wcd9xxx_dent = debugfs_create_dir
|
debugfs_wcd9xxx_dent = debugfs_create_dir
|
||||||
|
@ -1437,7 +1437,7 @@ static int wcd9xxx_slim_remove(struct slim_device *pdev)
|
||||||
struct wcd9xxx *wcd9xxx;
|
struct wcd9xxx *wcd9xxx;
|
||||||
struct wcd9xxx_pdata *pdata = pdev->dev.platform_data;
|
struct wcd9xxx_pdata *pdata = pdev->dev.platform_data;
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#if defined(CONFIG_DEBUG_FS) && defined(WCD9XXX_CORE_DEBUG)
|
||||||
debugfs_remove_recursive(debugfs_wcd9xxx_dent);
|
debugfs_remove_recursive(debugfs_wcd9xxx_dent);
|
||||||
#endif
|
#endif
|
||||||
wcd9xxx = slim_get_devicedata(pdev);
|
wcd9xxx = slim_get_devicedata(pdev);
|
||||||
|
|
Loading…
Add table
Reference in a new issue