m68k: set arch_gettimeoffset directly
remove m68k's mach_gettimeoffset function pointer, and instead directly set the arch_gettimeoffset function pointer. This requires multiplying all function results by 1000, since the removed m68k_gettimeoffset() did this. Also, s/unsigned long/u32/ just to make the function prototypes exactly match that of arch_gettimeoffset. Cc: Joshua Thompson <funaho@jurai.org> Cc: Sam Creasey <sammy@sammy.net> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Phil Blundell <philb@gnu.org> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Šī revīzija ir iekļauta:
@@ -26,7 +26,7 @@ u_long apollo_model;
|
||||
|
||||
extern void dn_sched_init(irq_handler_t handler);
|
||||
extern void dn_init_IRQ(void);
|
||||
extern unsigned long dn_gettimeoffset(void);
|
||||
extern u32 dn_gettimeoffset(void);
|
||||
extern int dn_dummy_hwclk(int, struct rtc_time *);
|
||||
extern int dn_dummy_set_clock_mmss(unsigned long);
|
||||
extern void dn_dummy_reset(void);
|
||||
@@ -151,7 +151,7 @@ void __init config_apollo(void)
|
||||
|
||||
mach_sched_init=dn_sched_init; /* */
|
||||
mach_init_IRQ=dn_init_IRQ;
|
||||
mach_gettimeoffset = dn_gettimeoffset;
|
||||
arch_gettimeoffset = dn_gettimeoffset;
|
||||
mach_max_dma_address = 0xffffffff;
|
||||
mach_hwclk = dn_dummy_hwclk; /* */
|
||||
mach_set_clock_mmss = dn_dummy_set_clock_mmss; /* */
|
||||
@@ -203,10 +203,9 @@ void dn_sched_init(irq_handler_t timer_routine)
|
||||
pr_err("Couldn't register timer interrupt\n");
|
||||
}
|
||||
|
||||
unsigned long dn_gettimeoffset(void) {
|
||||
|
||||
u32 dn_gettimeoffset(void)
|
||||
{
|
||||
return 0xdeadbeef;
|
||||
|
||||
}
|
||||
|
||||
int dn_dummy_hwclk(int op, struct rtc_time *t) {
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user