usb: ehci/ohci-platform: use SIMPLE_DEV_PM_OPS to support hibernation
authorWonhong Kwon <wonhongkwon@gmail.com>
Fri, 24 Oct 2014 04:45:47 +0000 (13:45 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Nov 2014 23:38:17 +0000 (15:38 -0800)
commit5e4ccd9ee2508d04a39fa27de9eb7bf65bad7594
treee9d499feb97308959792dc86f0560326e541320a
parenta57971bfa1e9aa9b42ed72df027d5b985b31b56b
usb: ehci/ohci-platform: use SIMPLE_DEV_PM_OPS to support hibernation

ehci/ohci-platform just define .suspend/.resume functions for dev_pm_ops,
but in order to support both STR(suspend-to-ram) and hibernation, other
callbacks such as .freeze/.thaw are also required.

Registering all required callbacks for both STR and hibernation can
be done by SIMPLE_DEV_PM_OPS macro function.

Signed-off-by: Wonhong Kwon <wonhong.kwon@lge.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-platform.c
drivers/usb/host/ohci-platform.c