]> git.sur5r.net Git - u-boot/commit
serial: Set up the 'priv' pointer when creating a serial device
authorSimon Glass <sjg@chromium.org>
Thu, 4 Sep 2014 22:27:23 +0000 (16:27 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Sep 2014 18:59:59 +0000 (12:59 -0600)
commitaddf9513d0b1a57062a8604330e8c0e822d9d214
treed8f7257d0beb9f00cd238c5dd82ab3101f173b5b
parent2fccd2d96badcdf6165658a99771a4c475586279
serial: Set up the 'priv' pointer when creating a serial device

The stdio_dev structure has a private pointer for its creator, but it is
not set up by the serial system. Set it to point to the serial device so
that it can be found by code called by stdio.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial.c