aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/rtc.c')
-rw-r--r--arch/x86/kernel/rtc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c
index 91492190ac72..9615eee9b775 100644
--- a/arch/x86/kernel/rtc.c
+++ b/arch/x86/kernel/rtc.c
@@ -146,8 +146,8 @@ unsigned char rtc_cmos_read(unsigned char addr)
146 unsigned char val; 146 unsigned char val;
147 147
148 lock_cmos_prefix(addr); 148 lock_cmos_prefix(addr);
149 outb_p(addr, RTC_PORT(0)); 149 outb(addr, RTC_PORT(0));
150 val = inb_p(RTC_PORT(1)); 150 val = inb(RTC_PORT(1));
151 lock_cmos_suffix(addr); 151 lock_cmos_suffix(addr);
152 return val; 152 return val;
153} 153}
@@ -156,8 +156,8 @@ EXPORT_SYMBOL(rtc_cmos_read);
156void rtc_cmos_write(unsigned char val, unsigned char addr) 156void rtc_cmos_write(unsigned char val, unsigned char addr)
157{ 157{
158 lock_cmos_prefix(addr); 158 lock_cmos_prefix(addr);
159 outb_p(addr, RTC_PORT(0)); 159 outb(addr, RTC_PORT(0));
160 outb_p(val, RTC_PORT(1)); 160 outb(val, RTC_PORT(1));
161 lock_cmos_suffix(addr); 161 lock_cmos_suffix(addr);
162} 162}
163EXPORT_SYMBOL(rtc_cmos_write); 163EXPORT_SYMBOL(rtc_cmos_write);