summaryrefslogtreecommitdiff
path: root/drivers/serial/serial_uniphier.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-10-24 17:00:11 +0900
committerMasahiro Yamada <yamada.m@jp.panasonic.com>2014-10-29 22:53:42 +0900
commitd9bc8fd1cb35feb2802ac1d4d39a1deabf0c3d79 (patch)
treed4aa57370ac682e5f1a58ad0ba567e72581e1b9e /drivers/serial/serial_uniphier.c
parentbb72148b2bbc026336d832edcb7bf9e2bde827df (diff)
downloadu-boot-imx-d9bc8fd1cb35feb2802ac1d4d39a1deabf0c3d79.zip
u-boot-imx-d9bc8fd1cb35feb2802ac1d4d39a1deabf0c3d79.tar.gz
u-boot-imx-d9bc8fd1cb35feb2802ac1d4d39a1deabf0c3d79.tar.bz2
serial: UniPhier: add static to locally used functions
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'drivers/serial/serial_uniphier.c')
-rw-r--r--drivers/serial/serial_uniphier.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/serial_uniphier.c
index faa69f0..3f3d415 100644
--- a/drivers/serial/serial_uniphier.c
+++ b/drivers/serial/serial_uniphier.c
@@ -55,7 +55,7 @@ struct uniphier_serial_private_data {
#define uniphier_serial_port(dev) \
((struct uniphier_serial_private_data *)dev_get_priv(dev))->membase
-int uniphier_serial_setbrg(struct udevice *dev, int baudrate)
+static int uniphier_serial_setbrg(struct udevice *dev, int baudrate)
{
struct uniphier_serial_platform_data *plat = dev_get_platdata(dev);
struct uniphier_serial __iomem *port = uniphier_serial_port(dev);
@@ -103,7 +103,7 @@ static int uniphier_serial_pending(struct udevice *dev, bool input)
return !(readb(&port->lsr) & UART_LSR_THRE);
}
-int uniphier_serial_probe(struct udevice *dev)
+static int uniphier_serial_probe(struct udevice *dev)
{
struct uniphier_serial_private_data *priv = dev_get_priv(dev);
struct uniphier_serial_platform_data *plat = dev_get_platdata(dev);
@@ -116,7 +116,7 @@ int uniphier_serial_probe(struct udevice *dev)
return 0;
}
-int uniphier_serial_remove(struct udevice *dev)
+static int uniphier_serial_remove(struct udevice *dev)
{
unmap_sysmem(uniphier_serial_port(dev));