projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[MIPS] Deforest the function pointer jungle in the time code.
[firefly-linux-kernel-4.4.55.git]
/
arch
/
mips
/
lasat
/
ds1603.c
diff --git
a/arch/mips/lasat/ds1603.c
b/arch/mips/lasat/ds1603.c
index 0b315f51d62cd456c9698d02e5f32c342f8d8418..52cb1436a12aff59908461f87f9ea114d44c1f63 100644
(file)
--- a/
arch/mips/lasat/ds1603.c
+++ b/
arch/mips/lasat/ds1603.c
@@
-135,8
+135,7
@@
static void rtc_end_op(void)
lasat_ndelay(1000);
}
lasat_ndelay(1000);
}
-/* interface */
-unsigned long ds1603_read(void)
+unsigned long read_persistent_clock(void)
{
unsigned long word;
unsigned long flags;
{
unsigned long word;
unsigned long flags;
@@
-147,10
+146,11
@@
unsigned long ds1603_read(void)
word = rtc_read_word();
rtc_end_op();
spin_unlock_irqrestore(&rtc_lock, flags);
word = rtc_read_word();
rtc_end_op();
spin_unlock_irqrestore(&rtc_lock, flags);
+
return word;
}
return word;
}
-int
ds1603_set
(unsigned long time)
+int
rtc_mips_set_mmss
(unsigned long time)
{
unsigned long flags;
{
unsigned long flags;