]> git.sur5r.net Git - u-boot/commit
USB: Fix strict aliasing in ohci-hcd
authorTroy Kisky <troy.kisky@boundarydevices.com>
Sat, 11 Aug 2012 21:49:09 +0000 (14:49 -0700)
committerMarek Vasut <marex@denx.de>
Sat, 1 Sep 2012 14:21:53 +0000 (16:21 +0200)
commitf1273f11433ef4803d5eb88f1ec26986c99094c7
treef78398d712828049334a97008bc06f61aaf8eacc
parentb7006958ea367394e39e82532317a44491ed52ac
USB: Fix strict aliasing in ohci-hcd

commit 5f6aa03fda2a0a79940765865c1e4266be8a75f8
    USB: Fix complaints about strict aliasing in OHCI-HCD

tried to fix this, but gcc4.4 still complains. So, this
patch basically reverts the above and does a simpler fix.

also, the above commit incorrectly changed
/* corresponds to data_buf[4-7] */
datab [1] = 0;
to

/* corresponds to databuf.u8[4-7] */
databuf.u8[1] = 0;

This patch also fixes that.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
drivers/usb/host/ohci-hcd.c