summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2009-10-15 11:19:15 +0900
committerTom Rix <Tom.Rix@windriver.com>2009-10-24 09:55:25 -0500
commitf3807374787e4394efb767e2e8527887f57e51b8 (patch)
tree1e3295f40e09b1221261fdce4831cb4ebc9334f5 /drivers/serial
parent8003c361deec3ee651451662efd05352f1abdd40 (diff)
downloadu-boot-imx-f3807374787e4394efb767e2e8527887f57e51b8.zip
u-boot-imx-f3807374787e4394efb767e2e8527887f57e51b8.tar.gz
u-boot-imx-f3807374787e4394efb767e2e8527887f57e51b8.tar.bz2
s5pc1xx: SMDKC100: fix compile warnings
fix the following compile warnings warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_s5pc1xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_s5pc1xx.c b/drivers/serial/serial_s5pc1xx.c
index 64c1dcc..68c06a9 100644
--- a/drivers/serial/serial_s5pc1xx.c
+++ b/drivers/serial/serial_s5pc1xx.c
@@ -74,7 +74,7 @@ void serial_setbrg_dev(const int dev_index)
val = pclk / baudrate;
writel(val / 16 - 1, &uart->ubrdiv);
- writel(udivslot[val % 16], &uart->udivslot);
+ writew(udivslot[val % 16], &uart->udivslot);
}
/*