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

Commit 58691e7a authored by Shaoqing Liu's avatar Shaoqing Liu
Browse files

coresight: add qmi_svc_event_notifier_unregister in remote_etm_remove



Needing call qmi_svc_event_notifier_unregister in remote_etm_remove
for releasing some register resource when quit the driver.

Change-Id: Ic6ec2ac1120d8a3d0bfc9c915fa5ac98ee97d212
Signed-off-by: default avatarShaoqing Liu <shaoqingliu@codeaurora.org>
parent c287f849
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -362,6 +362,10 @@ static int remote_etm_remove(struct platform_device *pdev)
{
	struct remote_etm_drvdata *drvdata = platform_get_drvdata(pdev);

	qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID,
					  CORESIGHT_QMI_VERSION,
					  drvdata->inst_id,
					  &drvdata->nb);
	coresight_unregister(drvdata->csdev);
	return 0;
}