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

Commit fce9f5df authored by Jeff Hugo's avatar Jeff Hugo
Browse files

msm: rdbg: Use smem_find_to_proc()



smem_find() is deprecated.  Use the replacement function,
smem_find_to_proc(), instead.

Change-Id: Ie491c019e6a38de7c9eaaa1f59edaeed048db552
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 4d3badde
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -784,8 +784,11 @@ static int rdbg_open(struct inode *inode, struct file *filp)
		goto bail;
	}

	rdbgdata->smem_addr = smem_find(proc_info[device_id].smem_buffer_addr,
		rdbgdata->smem_size);
	rdbgdata->smem_addr = smem_find_to_proc(
		proc_info[device_id].smem_buffer_addr,
		rdbgdata->smem_size,
		0,
		SMEM_ANY_HOST_FLAG);
	if (!rdbgdata->smem_addr) {
		dev_err(rdbgdata->device, "%s: Could not allocate smem memory",
			__func__);