Skip to content

Commit

Permalink
xtensa:fix the incompatible pointer type warning in time.c
Browse files Browse the repository at this point in the history
Fix the definition of the function ccount_read to be compatible
to the member read of the structure clocksource.

Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Wanlong Gao authored and Chris Zankel committed Dec 19, 2012
1 parent 752451f commit 09378d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ unsigned long ccount_per_jiffy; /* per 1/HZ */
unsigned long nsec_per_ccount; /* nsec per ccount increment */
#endif

static cycle_t ccount_read(void)
static cycle_t ccount_read(struct clocksource *cs)
{
return (cycle_t)get_ccount();
}
Expand Down

0 comments on commit 09378d7

Please sign in to comment.