rtc: Use CONFIG_X86 instead of __I386__
[pandora-u-boot.git] / drivers / rtc / mc146818.c
index 9e94a80..4df9eda 100644 (file)
@@ -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)
@@ -225,7 +225,7 @@ static int rtc_mc146818_write8(struct udevice *dev, unsigned int reg, int val)
        return 0;
 }
 
-static int rtc_mc146818_bind(struct udevice *dev)
+static int rtc_mc146818_probe(struct udevice *dev)
 {
        mc146818_init();
 
@@ -249,7 +249,7 @@ U_BOOT_DRIVER(rtc_mc146818) = {
        .name = "rtc_mc146818",
        .id = UCLASS_RTC,
        .of_match = rtc_mc146818_ids,
-       .bind = rtc_mc146818_bind,
+       .probe = rtc_mc146818_probe,
        .ops = &rtc_mc146818_ops,
 };