diff options
| author | David Lin <dtwlin@google.com> | 2017-10-12 16:08:18 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-23 23:43:31 +0200 |
| commit | d752a3f06237a114c7989dd479c7e506ea88c459 (patch) | |
| tree | a765224ab4f10f6a378d025c441c9ebb9206e913 | |
| parent | 8f56e8e87d4c0d8f7a7c5d8c69c69de07793c387 (diff) | |
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>
| -rw-r--r-- | drivers/mfd/wcd9xxx-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/wcd9xxx-core.c b/drivers/mfd/wcd9xxx-core.c index 65195f55d6f0..7224bd6a457c 100644 --- a/drivers/mfd/wcd9xxx-core.c +++ b/drivers/mfd/wcd9xxx-core.c @@ -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; static struct dentry *debugfs_wcd9xxx_dent; @@ -1392,7 +1392,7 @@ static int wcd9xxx_slim_probe(struct slim_device *slim) __func__, ret); goto err_slim_add; } -#ifdef CONFIG_DEBUG_FS +#if defined(CONFIG_DEBUG_FS) && defined(WCD9XXX_CORE_DEBUG) debugCodec = wcd9xxx; debugfs_wcd9xxx_dent = debugfs_create_dir @@ -1437,7 +1437,7 @@ static int wcd9xxx_slim_remove(struct slim_device *pdev) struct wcd9xxx *wcd9xxx; 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); #endif wcd9xxx = slim_get_devicedata(pdev); |
