USB: fix Unaligned access in EHCI driver

I get following warnings on spar64:
Kernel unaligned access at TPC[1000c9e4] ehci_hub_control+0x54c/0x68c [ehci_hcd]

Despite of the comment in the patched code, the type cast used there
does make unaligned access. The fix was made as it's done in
ohci-hub.c.

Signed-off-by: Max Dmitrichenko <dmitrmax@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


authored by Max Dmitrichenko and committed by Greg Kroah-Hartman 64543652 d8b21606

+1 -2
+1 -2
drivers/usb/host/ehci-hub.c
··· 653 653 if (status & ~0xffff) /* only if wPortChange is interesting */ 654 654 #endif 655 655 dbg_port (ehci, "GetStatus", wIndex + 1, temp); 656 - // we "know" this alignment is good, caller used kmalloc()... 657 - *((__le32 *) buf) = cpu_to_le32 (status); 656 + put_unaligned(cpu_to_le32 (status), (__le32 *) buf); 658 657 break; 659 658 case SetHubFeature: 660 659 switch (wValue) {