dm: serial: Separate out the core serial-device finding code
authorSimon Glass <sjg@chromium.org>
Mon, 12 Jun 2017 12:21:57 +0000 (06:21 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
commitd09608534cb4864d1fbde6459d3501129c344a0c
treefea45473632db38c91c8335a3955bf443a919ed4
parentdb9f8f6ad5718909c57aee9a9f476309ac790e1f
dm: serial: Separate out the core serial-device finding code

This function is quite long. Move the core code into a separate function
in preparation for adding livetree support.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1
drivers/serial/serial-uclass.c