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

Commit 921b95f9 authored by Meng Wang's avatar Meng Wang Committed by Gerrit - the friendly Code Review server
Browse files

audio-lnx: soc: pinctrl-lpi: fix rmmod issues



Deregister lpi with audio notifier when removing driver to
avoid crash when rmmod and insmod again.

Change-Id: Ibcaf272e6405ef8403b3ac66af5572050fa1092e
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent 3b194495
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -622,6 +622,7 @@ static int lpi_pinctrl_remove(struct platform_device *pdev)
{
	struct lpi_gpio_state *state = platform_get_drvdata(pdev);

	audio_notifier_deregister("lpi_tlmm");
	gpiochip_remove(&state->chip);
	return 0;
}