projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2547f3e
)
rtc: Use CONFIG_X86 instead of __I386__
author
Simon Glass
<sjg@chromium.org>
Mon, 26 Sep 2016 03:33:11 +0000
(21:33 -0600)
committer
Bin Meng
<bmeng.cn@gmail.com>
Tue, 11 Oct 2016 03:55:33 +0000
(11:55 +0800)
For 64-bit x86, __I386__ should perhaps not be defined. It is not clear from
the definition, but let's use CONFIG_X86 to be sure.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/rtc/mc146818.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/mc146818.c
b/drivers/rtc/mc146818.c
index da804d54595f6fab83fd86396eb8ca59eef262f8..4df9eda086f7ae9127c00496954e12bffe2a9e00 100644
(file)
--- a/
drivers/rtc/mc146818.c
+++ b/
drivers/rtc/mc146818.c
@@
-14,7
+14,7
@@
#include <dm.h>
#include <rtc.h>
-#if defined(
__I386__
) || defined(CONFIG_MALTA)
+#if defined(
CONFIG_X86
) || defined(CONFIG_MALTA)
#include <asm/io.h>
#define in8(p) inb(p)
#define out8(p, v) outb(v, p)