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

Commit 0c5bbc20 authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa Committed by Gerrit - the friendly Code Review server
Browse files

disp: msm: dp: deregister altmode notifier



Deregister the altmode notifier in the client teardown path since
the client will no longer be available to handle altmode
registration.

Change-Id: I06c6c61d4eb0b0fc9e9c1df1da4a0c86e4556de1
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent e2f98dc7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -309,6 +309,7 @@ void dp_altmode_put(struct dp_hpd *dp_hpd)
			dp_altmode);

	altmode_deregister_client(altmode->amclient);
	altmode_deregister_notifier(altmode->dev, altmode);

	kfree(altmode);
}