]> git.sur5r.net Git - u-boot/commit
dm: mips: Fix warnings in lb60 board
authorMarek Vasut <marex@denx.de>
Sun, 12 Aug 2012 14:53:35 +0000 (16:53 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 17 Aug 2012 18:13:48 +0000 (20:13 +0200)
commit9a16f310c0182e0744341b85c43ec8c4f50ae4dc
treec84bef3908aa025be304be9d715da88cf9aea093
parent8b82cefbfc88d12cdffa0970f03047b74d08487e
dm: mips: Fix warnings in lb60 board

The lb60 board accesses the clkgr register, which is 32bit via
16bit IO ops. This causes malfunction. Fix this.

qi_lb60.c: In function ‘cpm_init’:
qi_lb60.c:72:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
qi_lb60.c:84:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Daniel <zpxu@ingenic.cn>
Cc: Shinya Kuribayashi <skuribay@pobox.com>
Cc: Xiangfu Liu <xiangfu@openmobilefree.net>
board/qi/qi_lb60/qi_lb60.c