ASoC: wsa881x: Add support for unloading speaker module
Invalidate debugfs_wsa881x_dent after it is removed by a WSA device to avoid multiple remove calls on debugfs_wsa881x_dent. CRs-fixed: 2039099 Change-Id: Ifa9f633f49fff562e29290b2d1c1b976eeebd5ad Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:
@@ -1307,6 +1307,7 @@ static int wsa881x_swr_remove(struct swr_device *pdev)
|
||||
return -EINVAL;
|
||||
}
|
||||
debugfs_remove_recursive(debugfs_wsa881x_dent);
|
||||
debugfs_wsa881x_dent = NULL;
|
||||
snd_soc_unregister_codec(&pdev->dev);
|
||||
if (wsa881x->pd_gpio)
|
||||
gpio_free(wsa881x->pd_gpio);
|
||||
|
||||
Reference in New Issue
Block a user