diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-05-30 14:57:51 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-06-03 18:20:07 -0400 |
commit | 463a86304cae92e10277b47180ac59cf93982e5b (patch) | |
tree | 06db025f072518df97d2127a67dd921024d0838b /drivers/base | |
parent | 5ab788d7383289bfc141ab357767bc6c11bbf77f (diff) |
char/genrtc: x86: remove remnants of asm/rtc.h
Commit 3195ef59cb42 ("x86: Do full rtc synchronization with ntp") had
the side-effect of unconditionally enabling the RTC_LIB symbol on x86,
which in turn disables the selection of the CONFIG_RTC and
CONFIG_GEN_RTC drivers that contain a two older implementations of
the CONFIG_RTC_DRV_CMOS driver.
This removes x86 from the list for genrtc, and changes all references
to the asm/rtc.h header to instead point to the interfaces
from linux/mc146818rtc.h.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/power/trace.c b/drivers/base/power/trace.c index a6975795e7f3..efec10b49d59 100644 --- a/drivers/base/power/trace.c +++ b/drivers/base/power/trace.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <linux/export.h> | 11 | #include <linux/export.h> |
12 | #include <linux/rtc.h> | 12 | #include <linux/rtc.h> |
13 | 13 | ||
14 | #include <asm/rtc.h> | 14 | #include <linux/mc146818rtc.h> |
15 | 15 | ||
16 | #include "power.h" | 16 | #include "power.h" |
17 | 17 | ||
@@ -103,7 +103,7 @@ static int set_magic_time(unsigned int user, unsigned int file, unsigned int dev | |||
103 | n /= 24; | 103 | n /= 24; |
104 | time.tm_min = (n % 20) * 3; | 104 | time.tm_min = (n % 20) * 3; |
105 | n /= 20; | 105 | n /= 20; |
106 | set_rtc_time(&time); | 106 | mc146818_set_time(&time); |
107 | return n ? -1 : 0; | 107 | return n ? -1 : 0; |
108 | } | 108 | } |
109 | 109 | ||
@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void) | |||
112 | struct rtc_time time; | 112 | struct rtc_time time; |
113 | unsigned int val; | 113 | unsigned int val; |
114 | 114 | ||
115 | get_rtc_time(&time); | 115 | mc146818_get_time(&time); |
116 | pr_info("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n", | 116 | pr_info("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n", |
117 | time.tm_hour, time.tm_min, time.tm_sec, | 117 | time.tm_hour, time.tm_min, time.tm_sec, |
118 | time.tm_mon + 1, time.tm_mday, time.tm_year % 100); | 118 | time.tm_mon + 1, time.tm_mday, time.tm_year % 100); |