Skip to content

Commit

Permalink
timekeeping: Fix up read_persistent_clock() breakage on sh
Browse files Browse the repository at this point in the history
The recent commit "timekeeping: Increase granularity of
read_persistent_clock()" introduced read_persistent_clock()
rework which inadvertently broke the sh conversion:

	arch/sh/kernel/time.c:45: error: passing argument 1 of 'rtc_sh_get_time' from incompatible pointer type
	distcc[13470] ERROR: compile arch/sh/kernel/time.c on sprygo/32 failed
	make[2]: *** [arch/sh/kernel/time.o] Error 1

This trivial fix gets it working again.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
LKML-Reference: <20090824223239.GB20832@linux-sh.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Paul Mundt authored and Ingo Molnar committed Aug 25, 2009
1 parent d90246c commit 0ceb4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int (*rtc_sh_set_time)(const time_t) = null_rtc_set_time;
#ifdef CONFIG_GENERIC_CMOS_UPDATE
void read_persistent_clock(struct timespec *ts)
{
rtc_sh_get_time(&ts);
rtc_sh_get_time(ts);
}

int update_persistent_clock(struct timespec now)
Expand Down

0 comments on commit 0ceb4c3

Please sign in to comment.