dm: at91: Refactor serial driver slightly for driver model
authorSimon Glass <sjg@chromium.org>
Wed, 29 Oct 2014 19:08:59 +0000 (13:08 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 07:09:55 +0000 (08:09 +0100)
commit62137fc0ab31f352c6e4e2444c2336d5c6a08887
treee4758ea956607bb1cf5a28b7ec9ddbfefa707e7f
parent12fe7f7c2a0aaa4902e920ca8cc8608ebc30effe
dm: at91: Refactor serial driver slightly for driver model

Before adding driver model support, split out a few of the functions so
that they can be used by the driver model code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/serial/atmel_usart.c