console: Unify the check for a serial console
authorSimon Glass <sjg@chromium.org>
Thu, 27 Jul 2017 15:31:03 +0000 (09:31 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 31 Jul 2017 16:21:40 +0000 (12:21 -0400)
Put the check for whether a console is a serial device in a function so
that we can share the code in the two places that use it.

Signed-off-by: Simon Glass <sjg@chromium.org>

No differences found