From patchwork Wed Nov 21 06:31:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10692011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AD1CD1751 for ; Wed, 21 Nov 2018 06:31:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ACB82B804 for ; Wed, 21 Nov 2018 06:31:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E9C62B83D; Wed, 21 Nov 2018 06:31:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47C412B804 for ; Wed, 21 Nov 2018 06:31:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727450AbeKUREm (ORCPT ); Wed, 21 Nov 2018 12:04:42 -0500 Received: from mail-eopbgr1410100.outbound.protection.outlook.com ([40.107.141.100]:62514 "EHLO JPN01-OS2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727069AbeKUREm (ORCPT ); Wed, 21 Nov 2018 12:04:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HEE2biVWnM3M0gMUwtl9F8eueNABAefDNTsZ5fOdWhg=; b=FSjp9+eIlDQYFskQl9ZAZTyO0oFmUIyQuoxMb3GlZTmI7a3e8RLrYPLIxELNyhuG+O0rqEAkMScpBv/QbJg5wBkfuBVX/4QgX/cNdM+i5Jioss9nnvafCYxPM4fWEPQmHRQkiRiHvyeHjs7cv98XFA152YZh6OOQ3s5Y177xA7o= Received: from OSBPR01MB2293.jpnprd01.prod.outlook.com (52.134.243.14) by OSBPR01MB3128.jpnprd01.prod.outlook.com (52.134.255.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Wed, 21 Nov 2018 06:31:24 +0000 Received: from OSBPR01MB2293.jpnprd01.prod.outlook.com ([fe80::c070:7362:375f:74c5]) by OSBPR01MB2293.jpnprd01.prod.outlook.com ([fe80::c070:7362:375f:74c5%4]) with mapi id 15.20.1339.027; Wed, 21 Nov 2018 06:31:24 +0000 From: Yoshihiro Shimoda To: "balbi@kernel.org" CC: "gregkh@linuxfoundation.org" , "jarkko.nikula@linux.intel.com" , "linux-usb@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , Yoshihiro Shimoda Subject: [PATCH 2/2] usb: renesas_usbhs: Use SIMPLE_DEV_PM_OPS macro Thread-Topic: [PATCH 2/2] usb: renesas_usbhs: Use SIMPLE_DEV_PM_OPS macro Thread-Index: AQHUgWPS5CsspWhmTUaFlVerUNiD7g== Date: Wed, 21 Nov 2018 06:31:23 +0000 Message-ID: <1542781735-8548-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1542781735-8548-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> In-Reply-To: <1542781735-8548-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.9.1 x-clientproxiedby: TY1PR01CA0188.jpnprd01.prod.outlook.com (2603:1096:403::18) To OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yoshihiro.shimoda.uh@renesas.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [211.11.155.144] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;OSBPR01MB3128;20:S8bRSaJsYc53Kf+7d/dBZmq9tmMG5mvaQyUCCnx2TSkuGx8Hjs0eaP2I3nKKYLcgCuu6J1gdWjB1yUhgI1k3XYIL0GgtpzBs2utwSJt04TNnvLODL9LhdcXY6JNcTPGrWtCbSElSENsvPdOy2MpIH+XzkI/2BYo5xw0PWPKvR7s= x-ms-office365-filtering-correlation-id: 9935f229-3d53-46f8-a819-08d64f7af4f4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:OSBPR01MB3128; x-ms-traffictypediagnostic: OSBPR01MB3128: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231442)(944501410)(52105112)(10201501046)(93006095)(93001095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:OSBPR01MB3128;BCL:0;PCL:0;RULEID:;SRVR:OSBPR01MB3128; x-forefront-prvs: 08635C03D4 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(346002)(376002)(39860400002)(136003)(366004)(189003)(199004)(54906003)(6436002)(102836004)(5640700003)(52116002)(6486002)(86362001)(99286004)(105586002)(478600001)(53936002)(446003)(66066001)(2351001)(6512007)(5660300001)(14454004)(2501003)(81156014)(1730700003)(106356001)(11346002)(81166006)(8676002)(476003)(7736002)(2616005)(50226002)(6916009)(107886003)(6116002)(97736004)(68736007)(8936002)(486006)(2900100001)(186003)(386003)(305945005)(3846002)(2906002)(4326008)(71200400001)(25786009)(26005)(6506007)(76176011)(71190400001)(14444005)(316002)(256004)(36756003);DIR:OUT;SFP:1102;SCL:1;SRVR:OSBPR01MB3128;H:OSBPR01MB2293.jpnprd01.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: v1rQ3eAm+oiea2L5zozVOuJZFSEw0rsNKGXKmByUz/EZ8V6Gqj94wlsa8crvlqfJyq+MLvC4pxgMGeOnERCTR8nzh5+3R8dzS3fXxr1ZZI8/q3UbK+23egfGZYPZFPfAipP9PsdBF6ti6xB+7ziQWhEJP6fu56+2xI14QsBT009pyVwGiBBiEASssnO4AxSgFhCFfZtFfOmcZY5RAD/WGSy8/NlnfbKljCJ5crl/NXvCoEQUy8OeeNI8+6TqaP5eCvX0uEDUkOr3IvlzhZeXBCmoD9EZQaL3W+GbO1FRk0yMBu0NRTKj/9LmgCwnLOnooyFQ6IIVGQEPNhDVjh3LPiGuO7ZC5oZWTBRC/YCFyBU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9935f229-3d53-46f8-a819-08d64f7af4f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2018 06:31:23.6595 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB3128 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch uses SIMPLE_DEV_PM_OPS macro instead of struct dev_pm_ops directly. Signed-off-by: Yoshihiro Shimoda --- drivers/usb/renesas_usbhs/common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 = {