dm: ns16550: Use an address instead of a pointer for the uart base
authorSimon Glass <sjg@chromium.org>
Thu, 23 Oct 2014 03:37:04 +0000 (21:37 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 01:29:07 +0000 (19:29 -0600)
commit167efe01bc5a9de2aa4f7ce2663dbe398f9d43f6
treefd5a5b035663ba9060334a01d46b1e3a24069d3b
parentaea2be2012f474ddc9f372547e487ee74d4eb67a
dm: ns16550: Use an address instead of a pointer for the uart base

It is inconvenient to have to use casts when specifying platform data. Also
it is not strictly correct, since we should use map_sysmem() to convert an
address to a pointer.

Adjust the platform data to use an address.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/serial/ns16550.c
include/ns16550.h