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

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

msm: timer: Use smem_find_to_proc()



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

Change-Id: Ib656a6b4ee218c0cde86108dd5c779d0c90d3d65
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent fce9f5df
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -481,7 +481,8 @@ static uint32_t msm_timer_do_sync_to_sclk(
	uint32_t smem_clock_val;
	uint32_t state;

	smem_clock = smem_find(SMEM_SMEM_SLOW_CLOCK_VALUE, sizeof(uint32_t));
	smem_clock = smem_find_to_proc(SMEM_SMEM_SLOW_CLOCK_VALUE,
				sizeof(uint32_t), 0, SMEM_ANY_HOST_FLAG);
	if (smem_clock == NULL) {
		printk(KERN_ERR "no smem clock\n");
		return 0;
@@ -556,8 +557,8 @@ static uint32_t msm_timer_do_sync_to_sclk(
	uint32_t last_state;
	uint32_t state;

	smem_clock = smem_find(SMEM_SMEM_SLOW_CLOCK_VALUE,
				sizeof(uint32_t));
	smem_clock = smem_find_to_proc(SMEM_SMEM_SLOW_CLOCK_VALUE,
				sizeof(uint32_t), 0, SMEM_ANY_HOST_FLAG);

	if (smem_clock == NULL) {
		printk(KERN_ERR "no smem clock\n");