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

Commit 1315990c authored by Karthik Anantha Ram's avatar Karthik Anantha Ram Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: reqmgr: Remove mem_mgr init & deinit calls



Remove the calls to init & deinit the mem_mgr as part of
driver probe and remove. The init & deinit is already
being done as part of open & release v4l2 file ops.

Change-Id: Ic97cb8b628f3406d88b21d914cd7b4f64b9d833c
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 2e387d22
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -584,7 +584,6 @@ EXPORT_SYMBOL(cam_unregister_subdev);
static int cam_req_mgr_remove(struct platform_device *pdev)
{
	cam_req_mgr_core_device_deinit();
	cam_mem_mgr_deinit();
	cam_req_mgr_util_deinit();
	cam_media_device_cleanup();
	cam_video_device_cleanup();
@@ -624,12 +623,6 @@ static int cam_req_mgr_probe(struct platform_device *pdev)
		goto req_mgr_util_fail;
	}

	rc = cam_mem_mgr_init();
	if (rc) {
		CAM_ERR(CAM_CRM, "mem mgr init failed");
		goto mem_mgr_init_fail;
	}

	rc = cam_req_mgr_core_device_init();
	if (rc) {
		CAM_ERR(CAM_CRM, "core device setup failed");
@@ -654,8 +647,6 @@ static int cam_req_mgr_probe(struct platform_device *pdev)
	return rc;

req_mgr_core_fail:
	cam_mem_mgr_deinit();
mem_mgr_init_fail:
	cam_req_mgr_util_deinit();
req_mgr_util_fail:
	mutex_destroy(&g_dev.dev_lock);