]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/serial/serial.c
serial: Set up the 'priv' pointer when creating a serial device
[karo-tx-uboot.git] / drivers / serial / serial.c
index d2eb7520d03886748c7d0130a0851c51eca8d997..bbe60af627e4c452eb7a76fb6c7552819439dcff 100644 (file)
@@ -320,6 +320,7 @@ void serial_stdio_init(void)
                dev.puts = serial_stub_puts;
                dev.getc = serial_stub_getc;
                dev.tstc = serial_stub_tstc;
+               dev.priv = s;
 
                stdio_register(&dev);