]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_log.c
edb93xx: enable the uart in devicecfg register
[karo-tx-uboot.git] / common / cmd_log.c
index d422d9f924645c78dcee351406b0f6cb0cd1bda2..3653fe1a1ef914cb6a52b50960fe9bd22e554d47 100644 (file)
@@ -42,7 +42,7 @@
 
 #include <common.h>
 #include <command.h>
-#include <devices.h>
+#include <stdio_dev.h>
 #include <post.h>
 #include <logbuff.h>
 
@@ -142,7 +142,7 @@ void logbuff_reset (void)
 
 int drv_logbuff_init (void)
 {
-       device_t logdev;
+       struct stdio_dev logdev;
        int rc;
 
        /* Device initialization */
@@ -154,7 +154,7 @@ int drv_logbuff_init (void)
        logdev.putc  = logbuff_putc;            /* 'putc' function */
        logdev.puts  = logbuff_puts;            /* 'puts' function */
 
-       rc = device_register (&logdev);
+       rc = stdio_register (&logdev);
 
        return (rc == 0) ? 1 : rc;
 }