diff options
author | Wanlong Gao <wanlong.gao@gmail.com> | 2011-06-01 16:37:43 +0200 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-12-19 06:10:20 +0100 |
commit | 09378d7c21a806d5ddb75ebcae242d98cea30e44 (patch) | |
tree | 7dd7d8581e04fc285fcea0bba8bbffd2b7d8ba5b /arch/xtensa/kernel/time.c | |
parent | Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux (diff) | |
download | linux-09378d7c21a806d5ddb75ebcae242d98cea30e44.tar.xz linux-09378d7c21a806d5ddb75ebcae242d98cea30e44.zip |
xtensa:fix the incompatible pointer type warning in time.c
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>
Diffstat (limited to 'arch/xtensa/kernel/time.c')
-rw-r--r-- | arch/xtensa/kernel/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/time.c b/arch/xtensa/kernel/time.c index ac62f9cf1e10..19b32a0eaebc 100644 --- a/arch/xtensa/kernel/time.c +++ b/arch/xtensa/kernel/time.c @@ -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(); } |