diff options
author | Pavel Machek <pavel@suse.cz> | 2005-04-18 20:39:24 -0400 |
---|---|---|
committer | Greg K-H <gregkh@suse.de> | 2005-04-18 20:39:24 -0400 |
commit | ba9d35fb01852e195f2a4ca975fdcd6578b52c78 (patch) | |
tree | e0609e6e255f4875ba5ab69bb0aa169d8c5edae8 /drivers/usb/host | |
parent | 9a5d3e98dd31abcecbf4533b81866d440cc0f106 (diff) |
[PATCH] USB: fix up remaining pm_message_t usages
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 4 | ||||
-rw-r--r-- | drivers/usb/host/ohci-pxa27x.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index 90285f180f87..8aab5907afe9 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c | |||
@@ -458,9 +458,11 @@ static int ohci_hcd_omap_drv_remove(struct device *dev) | |||
458 | 458 | ||
459 | /* states match PCI usage, always suspending the root hub except that | 459 | /* states match PCI usage, always suspending the root hub except that |
460 | * 4 ~= D3cold (ACPI D3) with clock off (resume sees reset). | 460 | * 4 ~= D3cold (ACPI D3) with clock off (resume sees reset). |
461 | * | ||
462 | * FIXME: above comment is not right, and code is wrong, too :-(. | ||
461 | */ | 463 | */ |
462 | 464 | ||
463 | static int ohci_omap_suspend(struct device *dev, u32 state, u32 level) | 465 | static int ohci_omap_suspend(struct device *dev, pm_message_t state, u32 level) |
464 | { | 466 | { |
465 | struct ohci_hcd *ohci = hcd_to_ohci(dev_get_drvdata(dev)); | 467 | struct ohci_hcd *ohci = hcd_to_ohci(dev_get_drvdata(dev)); |
466 | int status = -EINVAL; | 468 | int status = -EINVAL; |
diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 6f3464a95779..e5bc1789d18a 100644 --- a/drivers/usb/host/ohci-pxa27x.c +++ b/drivers/usb/host/ohci-pxa27x.c | |||
@@ -337,7 +337,7 @@ static int ohci_hcd_pxa27x_drv_remove(struct device *dev) | |||
337 | return 0; | 337 | return 0; |
338 | } | 338 | } |
339 | 339 | ||
340 | static int ohci_hcd_pxa27x_drv_suspend(struct device *dev, u32 state, u32 level) | 340 | static int ohci_hcd_pxa27x_drv_suspend(struct device *dev, pm_message_t state, u32 level) |
341 | { | 341 | { |
342 | // struct platform_device *pdev = to_platform_device(dev); | 342 | // struct platform_device *pdev = to_platform_device(dev); |
343 | // struct usb_hcd *hcd = dev_get_drvdata(dev); | 343 | // struct usb_hcd *hcd = dev_get_drvdata(dev); |
@@ -346,7 +346,7 @@ static int ohci_hcd_pxa27x_drv_suspend(struct device *dev, u32 state, u32 level) | |||
346 | return 0; | 346 | return 0; |
347 | } | 347 | } |
348 | 348 | ||
349 | static int ohci_hcd_pxa27x_drv_resume(struct device *dev, u32 state) | 349 | static int ohci_hcd_pxa27x_drv_resume(struct device *dev, u32 level) |
350 | { | 350 | { |
351 | // struct platform_device *pdev = to_platform_device(dev); | 351 | // struct platform_device *pdev = to_platform_device(dev); |
352 | // struct usb_hcd *hcd = dev_get_drvdata(dev); | 352 | // struct usb_hcd *hcd = dev_get_drvdata(dev); |