summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2018-11-21 06:31:23 +0000
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-12-05 11:13:58 +0200
commitd54d334e75b93f3a372d1cbb7e805380b3281482 (patch)
treeb7a94e06f8634d2a77e3dd6b07f5cfcfb59d7041
parentb01828e26048f43dc4cea5759f200ec9e8332039 (diff)
usb: renesas_usbhs: Use SIMPLE_DEV_PM_OPS macro
This patch uses SIMPLE_DEV_PM_OPS macro instead of struct dev_pm_ops directly. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r--drivers/usb/renesas_usbhs/common.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index 0e760f228dd8..02c1d2bf4f86 100644
--- a/drivers/usb/renesas_usbhs/common.c
+++ b/drivers/usb/renesas_usbhs/common.c
@@ -874,10 +874,7 @@ static int usbhsc_resume(struct device *dev)
return 0;
}
-static const struct dev_pm_ops usbhsc_pm_ops = {
- .suspend = usbhsc_suspend,
- .resume = usbhsc_resume,
-};
+static SIMPLE_DEV_PM_OPS(usbhsc_pm_ops, usbhsc_suspend, usbhsc_resume);
static struct platform_driver renesas_usbhs_driver = {
.driver = {