X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fnetphone%2Fphone_console.c;h=3d82e047c18964752276b269884f10de975f3edc;hb=b038db852b5b7120f1ff825d8e2a5c2cd14c2f0f;hp=d9b0ad3768ddfcd5563d32c34c957f8eeae6f4cd;hpb=f82642e33899766892499b163e60560fbbf87773;p=u-boot diff --git a/board/netphone/phone_console.c b/board/netphone/phone_console.c index d9b0ad3768..3d82e047c1 100644 --- a/board/netphone/phone_console.c +++ b/board/netphone/phone_console.c @@ -37,7 +37,7 @@ #include #include -#include +#include #include @@ -325,7 +325,7 @@ int phone_getc(void) int drv_phone_init(void) { - device_t console_dev; + struct stdio_dev console_dev; console_init(); @@ -340,7 +340,7 @@ int drv_phone_init(void) console_dev.tstc = phone_tstc; /* 'tstc' function */ console_dev.getc = phone_getc; /* 'getc' function */ - if (device_register(&console_dev) == 0) + if (stdio_register(&console_dev) == 0) return 1; return 0;