diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-29 04:03:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:28 -0400 |
commit | a5abdeafedf722b0f3f357f4a23089a686b1b80d (patch) | |
tree | 06dc1712a552ddd190c4e1a323e9e069a4d5e059 /drivers/usb/host | |
parent | 6b1e6f637469647f435f8f8ab00fbafa3c129712 (diff) |
usb: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-hub.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ohci-hub.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index f13d1029aeb2..382587c4457c 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c | |||
@@ -770,7 +770,7 @@ static int ehci_hub_control ( | |||
770 | if (status & ~0xffff) /* only if wPortChange is interesting */ | 770 | if (status & ~0xffff) /* only if wPortChange is interesting */ |
771 | #endif | 771 | #endif |
772 | dbg_port (ehci, "GetStatus", wIndex + 1, temp); | 772 | dbg_port (ehci, "GetStatus", wIndex + 1, temp); |
773 | put_unaligned(cpu_to_le32 (status), (__le32 *) buf); | 773 | put_unaligned_le32(status, buf); |
774 | break; | 774 | break; |
775 | case SetHubFeature: | 775 | case SetHubFeature: |
776 | switch (wValue) { | 776 | switch (wValue) { |
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index 5be3bb3e6a9d..17dc2eccda83 100644 --- a/drivers/usb/host/ohci-hub.c +++ b/drivers/usb/host/ohci-hub.c | |||
@@ -736,14 +736,14 @@ static int ohci_hub_control ( | |||
736 | break; | 736 | break; |
737 | case GetHubStatus: | 737 | case GetHubStatus: |
738 | temp = roothub_status (ohci) & ~(RH_HS_CRWE | RH_HS_DRWE); | 738 | temp = roothub_status (ohci) & ~(RH_HS_CRWE | RH_HS_DRWE); |
739 | put_unaligned(cpu_to_le32 (temp), (__le32 *) buf); | 739 | put_unaligned_le32(temp, buf); |
740 | break; | 740 | break; |
741 | case GetPortStatus: | 741 | case GetPortStatus: |
742 | if (!wIndex || wIndex > ports) | 742 | if (!wIndex || wIndex > ports) |
743 | goto error; | 743 | goto error; |
744 | wIndex--; | 744 | wIndex--; |
745 | temp = roothub_portstatus (ohci, wIndex); | 745 | temp = roothub_portstatus (ohci, wIndex); |
746 | put_unaligned(cpu_to_le32 (temp), (__le32 *) buf); | 746 | put_unaligned_le32(temp, buf); |
747 | 747 | ||
748 | #ifndef OHCI_VERBOSE_DEBUG | 748 | #ifndef OHCI_VERBOSE_DEBUG |
749 | if (*(u16*)(buf+2)) /* only if wPortChange is interesting */ | 749 | if (*(u16*)(buf+2)) /* only if wPortChange is interesting */ |