diff mbox series

[2/2] usb: renesas_usbhs: Use SIMPLE_DEV_PM_OPS macro

Message ID 1542781735-8548-3-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive)
State Mainlined
Commit d54d334e75b93f3a372d1cbb7e805380b3281482
Headers show
Series usb: renesas_usbhs: clean up the code around dev_pm_ops | expand

Commit Message

Yoshihiro Shimoda Nov. 21, 2018, 6:31 a.m. UTC
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>
---
 drivers/usb/renesas_usbhs/common.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index 0e760f2..02c1d2b 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		= {