USB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor
authorJason Kridner <jkridner@beagleboard.org>
Wed, 20 Apr 2011 13:54:16 +0000 (08:54 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 4 Sep 2011 09:36:20 +0000 (11:36 +0200)
commit69716c1900274a89bd5cbd1b0bb276ceaaa04f61
treef368dd3e40a4019f2b32d6d6976dce8bd9f6cdaa
parent1ffcb346926ac43b480b0829e7f7196c765d7d98
USB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor

Remove __attribute__ ((packed)) to prevent byte access to soc
registers in some gcc versions.

Having patches to enable ehci for the BeagleBoard lying around for
several months, this one was the show-stopper.

Switched to align(4), rather than remove the attribute, per suggestion
from Alexander.

Credits have to go to Laine Walker-Avina <lwalkera@ieee.org> for
finding the problem.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Cc: Alexander Holler <holler@ahsoftware.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
drivers/usb/host/ehci.h