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

Commit ad35a18f authored by Krishnankutty Kolathappilly's avatar Krishnankutty Kolathappilly
Browse files

msm: soc: Avoid calling bus clear pdata



Avoid calling bus clear pdata when bus manager is de-initialized as
this is a redundant call. This is taken care by the base device
driver release_node function.

CRs-Fixed: 1076959
Change-Id: I8de2db02e6e073144bc5d8a9173313102c9a598f
Signed-off-by: default avatarKrishnankutty Kolathappilly <kkolatha@codeaurora.org>
parent ce610f2f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1040,8 +1040,11 @@ uint32_t msm_camera_unregister_bus_client(enum cam_bus_client id)

	mutex_destroy(&g_cv[id].lock);
	msm_bus_scale_unregister_client(g_cv[id].bus_client);
	msm_bus_cl_clear_pdata(g_cv[id].pdata);
	memset(&g_cv[id], 0, sizeof(struct msm_cam_bus_pscale_data));
	g_cv[id].bus_client = 0;
	g_cv[id].num_usecases = 0;
	g_cv[id].num_paths = 0;
	g_cv[id].vector_index = 0;
	g_cv[id].dyn_vote = 0;

	return 0;
}