From patchwork Sun May 29 20:25:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 9139959 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 99DE860221 for ; Sun, 29 May 2016 20:26:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 892B127BE4 for ; Sun, 29 May 2016 20:26:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C8D0281F9; Sun, 29 May 2016 20:26:37 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham 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 0E3E327BE4 for ; Sun, 29 May 2016 20:26:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752924AbcE2U0g (ORCPT ); Sun, 29 May 2016 16:26:36 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:36099 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862AbcE2U0f (ORCPT ); Sun, 29 May 2016 16:26:35 -0400 Received: by mail-pa0-f66.google.com with SMTP id fg1so19174766pad.3; Sun, 29 May 2016 13:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=rTaAeQ9tUc1LtjVijW8mvVG0H8lCBujBr18C84EMM2Q=; b=JXb6lvwynCjupSSqMJ5Tm9JwvaBX+Lxbcfrlhiq2/zrqrTzcCi9SyeNtTPuNYlI00o k6k8S+NF86b9dopzLbiQQBJo4bNCybdvNgzsHK76XMguyB0qIPPTEI4PXJDjLrUhbcQU YMCCechV2BoTI1YASEK7WpFPUtN6pgxLln/q5m0IHX7RXE0G9/okPyqRKOIZZLnZAGCC GE/WrhfQVB1CfaznYX1JSO5tpmrDhUPb9G1cAO3ooUqCaRNeScL+DVlHMCyu2abPwoVr K8zdEUeEfSuAY8fIpA/r9BDvxo1L25u4Mfit29y6NqfMNUG6RSTYiggb61B55zBXnP87 gM3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rTaAeQ9tUc1LtjVijW8mvVG0H8lCBujBr18C84EMM2Q=; b=GraU3lN7iJ0dCS8X+Wl+O6KvkVtEK1WIIT/VhJoorYMsvz4+XtfbxLL9XHLkmrZxq5 v3jFmsGvsffXVPwef2eMzhpWBSnEDF5tKELuPMGssSuRE/MgOUSJX2hiHAAkTNi6sgKJ TLkd9whVe59M8McOL4o8PEIuvQxgxjsZZFBl2pJ5eFFMiQGzasMDuWWo3VAU012bCCPT 8DvQpbTbKK+C1UGFvclRVAT0NF7yTWQsl0khiGzfOxOrgJQJZ4tB2lQmY2xdTwmpFOiO HTYveqVSrw9g1dJ+6uL6b6Pt1QV6TUDxebwnfYUVpyIaAZSw4OuBpp4rlFRxkgON0BGQ 4K9w== X-Gm-Message-State: ALyK8tLid5REyE197itCQTGw/klQFpCaVi1aJpnmDl53d8Vr7LyFvcHQwJpCXK1ELWlALQ== X-Received: by 10.66.101.241 with SMTP id fj17mr40538203pab.59.1464553594964; Sun, 29 May 2016 13:26:34 -0700 (PDT) Received: from localhost.localdomain ([118.152.108.246]) by smtp.gmail.com with ESMTPSA id c15sm21718647pfj.65.2016.05.29.13.26.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 May 2016 13:26:34 -0700 (PDT) From: Yoshihiro Kaneko To: netdev@vger.kernel.org Cc: "David S. Miller" , Sergei Shtylyov , Simon Horman , Magnus Damm , linux-renesas-soc@vger.kernel.org Subject: [PATCH net-next] ravb: Add SET_RUNTIME_PM_OPS macro Date: Mon, 30 May 2016 05:25:43 +0900 Message-Id: <1464553543-19091-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kazuya Mizuguchi Use SET_RUNTIME_PM_OPS macro instead of assigning a member of dev_pm_ops directly. Signed-off-by: Kazuya Mizuguchi Signed-off-by: Yoshihiro Kaneko Acked-by: Sergei Shtylyov --- This patch is based on the master branch of David Miller's next networking tree. drivers/net/ethernet/renesas/ravb_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 867caf6..da8da86 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -2111,8 +2111,7 @@ static int ravb_runtime_nop(struct device *dev) } static const struct dev_pm_ops ravb_dev_pm_ops = { - .runtime_suspend = ravb_runtime_nop, - .runtime_resume = ravb_runtime_nop, + SET_RUNTIME_PM_OPS(ravb_runtime_nop, ravb_runtime_nop, NULL) }; #define RAVB_PM_OPS (&ravb_dev_pm_ops)