Skip to content

Commit

Permalink
msm: timer: fix missing return value
Browse files Browse the repository at this point in the history
Change af90f10 "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: David Brown <davidb@codeaurora.org>
  • Loading branch information
David Brown committed Mar 31, 2011
1 parent 62f0988 commit 893b66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ int __cpuinit local_timer_setup(struct clock_event_device *evt)

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

writel(DGT_CLK_CTL_DIV_4, MSM_TMR_BASE + DGT_CLK_CTL);

Expand Down

0 comments on commit 893b66c

Please sign in to comment.