diff options
author | David Brownell <david-b@pacbell.net> | 2005-04-18 20:39:23 -0400 |
---|---|---|
committer | Greg K-H <gregkh@suse.de> | 2005-04-18 20:39:23 -0400 |
commit | 9a5d3e98dd31abcecbf4533b81866d440cc0f106 (patch) | |
tree | 8638550bd50ff0fdc3b097d0643b5efed3516633 /drivers/usb/core | |
parent | 27d72e8572336d9f4e17a12ac924cb5223a5758d (diff) |
[PATCH] USB: hcd suspend uses pm_message_t
This patch includes minor "sparse -Wbitwise" updates for the PCI based
HCDs. Almost all of them involve just changing the second parameter of the
suspend() method to a pm_message_t ... the others relate to how the EHCI
code walks in-memory data structures. (There's a minor bug fixed there too
... affecting the big-endian sysfs async schedule dump.)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Index: gregkh-2.6/drivers/usb/core/hcd.h
===================================================================
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/hcd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hcd.h b/drivers/usb/core/hcd.h index 6c625b35fa0c..f67cf1e634fc 100644 --- a/drivers/usb/core/hcd.h +++ b/drivers/usb/core/hcd.h | |||
@@ -177,7 +177,7 @@ struct hc_driver { | |||
177 | * a whole, not just the root hub; they're for bus glue. | 177 | * a whole, not just the root hub; they're for bus glue. |
178 | */ | 178 | */ |
179 | /* called after all devices were suspended */ | 179 | /* called after all devices were suspended */ |
180 | int (*suspend) (struct usb_hcd *hcd, u32 state); | 180 | int (*suspend) (struct usb_hcd *hcd, pm_message_t message); |
181 | 181 | ||
182 | /* called before any devices get resumed */ | 182 | /* called before any devices get resumed */ |
183 | int (*resume) (struct usb_hcd *hcd); | 183 | int (*resume) (struct usb_hcd *hcd); |
@@ -226,7 +226,7 @@ extern int usb_hcd_pci_probe (struct pci_dev *dev, | |||
226 | extern void usb_hcd_pci_remove (struct pci_dev *dev); | 226 | extern void usb_hcd_pci_remove (struct pci_dev *dev); |
227 | 227 | ||
228 | #ifdef CONFIG_PM | 228 | #ifdef CONFIG_PM |
229 | extern int usb_hcd_pci_suspend (struct pci_dev *dev, u32 state); | 229 | extern int usb_hcd_pci_suspend (struct pci_dev *dev, pm_message_t state); |
230 | extern int usb_hcd_pci_resume (struct pci_dev *dev); | 230 | extern int usb_hcd_pci_resume (struct pci_dev *dev); |
231 | #endif /* CONFIG_PM */ | 231 | #endif /* CONFIG_PM */ |
232 | 232 | ||