Browse Source

usb: fix hibernate in r8a66597-hcd dev_pm_ops conversion.

This fixes up the dev_pm_ops conversion and wires up the callbacks needed
for hibernation.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Yoshihiro Shimoda 16 years ago
parent
commit
3725f28b47
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/usb/host/r8a66597-hcd.c

+ 2 - 0
drivers/usb/host/r8a66597-hcd.c

@@ -2357,6 +2357,8 @@ static int r8a66597_resume(struct device *dev)
 static struct dev_pm_ops r8a66597_dev_pm_ops = {
 	.suspend = r8a66597_suspend,
 	.resume = r8a66597_resume,
+	.poweroff = r8a66597_suspend,
+	.restore = r8a66597_resume,
 };
 
 #define R8A66597_DEV_PM_OPS	(&r8a66597_dev_pm_ops)