xtensa:fix the incompatible pointer type warning in time.c
authorWanlong Gao <wanlong.gao@gmail.com>
Wed, 1 Jun 2011 14:37:43 +0000 (22:37 +0800)
committerChris Zankel <chris@zankel.net>
Wed, 19 Dec 2012 05:10:20 +0000 (21:10 -0800)
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>
arch/xtensa/kernel/time.c

index ac62f9cf1e100518ce719d10beb7110385b149ba..19b32a0eaebcc665732e460c22a6ce493d4e29b1 100644 (file)
@@ -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();
 }