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

Commit 893b66c3 authored by David Brown's avatar David Brown
Browse files

msm: timer: fix missing return value



Change af90f10d "ARM: 6759/1: smp: Select local timers vs broadcast
timer support runtime" missed a return statement, causing a compile
warning:

  arch/arm/mach-msm/timer.c:272: warning: 'return' with no value, in
  function returning non-void

Trivially return 0 for success when running on cpu 0 (to match the
comment and previous behavior).

Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
parent 62f0988e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -269,7 +269,7 @@ int __cpuinit local_timer_setup(struct clock_event_device *evt)


	/* Use existing clock_event for cpu 0 */
	/* Use existing clock_event for cpu 0 */
	if (!smp_processor_id())
	if (!smp_processor_id())
		return;
		return 0;


	writel(DGT_CLK_CTL_DIV_4, MSM_TMR_BASE + DGT_CLK_CTL);
	writel(DGT_CLK_CTL_DIV_4, MSM_TMR_BASE + DGT_CLK_CTL);