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

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

msm: remote_spinlock: Use smem_find_to_proc()



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

Change-Id: I7516e53ae71919c6ee7a40da9b5453e593cd283c
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 0eb4f625
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -572,8 +572,10 @@ static int remote_spinlock_init_address_smem(int id, _remote_spinlock_t *lock)
	if (id >= SMEM_SPINLOCK_COUNT)
		return -EINVAL;

	spinlock_start = smem_find(SMEM_SPINLOCK_ARRAY,
				    SMEM_SPINLOCK_ARRAY_SIZE);
	spinlock_start = smem_find_to_proc(SMEM_SPINLOCK_ARRAY,
				    SMEM_SPINLOCK_ARRAY_SIZE,
				    0,
				    SMEM_ANY_HOST_FLAG);
	if (spinlock_start == NULL)
		return -ENXIO;