Minkyu Kang wrote: > fix the following compile warnings > warning: dereferencing type-punned pointer will break strict-aliasing rules > > Signed-off-by: Minkyu Kang <mk7.k...@samsung.com> > --- > drivers/serial/serial_s5pc1xx.c | 2 +- > include/asm-arm/arch-s5pc1xx/clock.h | 88 > +++++++++++++++++----------------- > include/asm-arm/arch-s5pc1xx/gpio.h | 12 ++-- > include/asm-arm/arch-s5pc1xx/pwm.h | 36 +++++++------- > include/asm-arm/arch-s5pc1xx/uart.h | 18 ++++---- > include/linux/mtd/samsung_onenand.h | 70 +++++++++++++------------- > 6 files changed, 113 insertions(+), 113 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); > }
If you are changing to using writew, the table udivslot should also change to match the type of udivslot, unsigned short. Please submit a follow-on change for this. Ack-ed. Tom _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot