From: Michael Hennerich Date: Mon, 21 Dec 2009 17:53:24 +0000 (-0500) Subject: USB: host: SL811: fix unaligned accesses X-Git-Tag: v2.6.34-rc1~215^2~169 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ca5bfab154487fd75a946e6e95d3519eb74be6a;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git USB: host: SL811: fix unaligned accesses Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu Signed-off-by: Mike Frysinger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 5b22a4d..e11cc3a 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c @@ -51,6 +51,7 @@ #include #include #include +#include #include "../core/hcd.h" #include "sl811.h" @@ -1272,12 +1273,12 @@ sl811h_hub_control( sl811h_hub_descriptor(sl811, (struct usb_hub_descriptor *) buf); break; case GetHubStatus: - *(__le32 *) buf = cpu_to_le32(0); + put_unaligned_le32(0, buf); break; case GetPortStatus: if (wIndex != 1) goto error; - *(__le32 *) buf = cpu_to_le32(sl811->port1); + put_unaligned_le32(sl811->port1, buf); #ifndef VERBOSE if (*(u16*)(buf+2)) /* only if wPortChange is interesting */