dm: stdio: Allow lazy probing of video devices
authorSimon Glass <sjg@chromium.org>
Thu, 6 Oct 2016 02:42:16 +0000 (20:42 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 11 Oct 2016 03:55:33 +0000 (11:55 +0800)
commitd8441ea27ed1253f17f05f30057853a95a28b4c7
treef28ce8ca385490b2d3de9874b660aa05515be14c
parent1df912762815df8a1254e4629dfb62e1845c15dd
dm: stdio: Allow lazy probing of video devices

At present all video devices are probed on start-up. It would be better to
probe a device only when it is needed. This can happen if it is referenced
in the stdout environment variable, for example.

Add support for this by searching for a suitable device when needed, probing
it, and finding the stdio device it creates.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/stdio.c