Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2330c2d6 authored by Karthikeyan Mani's avatar Karthikeyan Mani
Browse files

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: default avatarKarthikeyan Mani <kmani@codeaurora.org>
parent a25de292
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1273,6 +1273,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);