From patchwork Wed Jan 21 22:18:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5680671 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 32FF09F358 for ; Wed, 21 Jan 2015 22:18:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B94320480 for ; Wed, 21 Jan 2015 22:18:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CCB520497 for ; Wed, 21 Jan 2015 22:18:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753378AbbAUWSs (ORCPT ); Wed, 21 Jan 2015 17:18:48 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:57637 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751751AbbAUWSs (ORCPT ); Wed, 21 Jan 2015 17:18:48 -0500 Received: by mail-lb0-f180.google.com with SMTP id b6so16215953lbj.11 for ; Wed, 21 Jan 2015 14:18:47 -0800 (PST) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=3UH+7LEVu6x3tjovOEY5qdX6eIsTP8lV93/PH1yW+Vs=; b=YavVA8ZSzjq1UIUu3++w+THfL/3W3/f+QznlRu3BNGDVDzhgkPUqDG86+iMi35bD7G cy/Vq+n1cEbfHLry1+Mm+Y7ExxqPadefg65AzuQVmiatpvwvzVKovIAIXBHWGbvpnwce pefW+sbIgN92wR7MDXFWKulc1TMgG7CxPtqev65ODnCmi9e6nhIB+xPMHkUtfwlszgne PHVZ83zTGO+3eVimr0WxU1vDKqK4vQSyqysWUsEqmgYqA+Cp1WCT3jAhsZ99QsEXnRXu istQ7fQAwZm0MEnYf+Zxfzs7gfKEUrlpctsXTAZ3McisfTN+jA43Knj+xaH93e1yqL2t qLvg== X-Gm-Message-State: ALoCoQnS6cC9PUdm90eTzAxDA7DiRMfCBO8yy2pelUC8HbbLBIta2KsSdDihB8JRUjr4rxJCeRww X-Received: by 10.112.154.70 with SMTP id vm6mr46978947lbb.18.1421878726968; Wed, 21 Jan 2015 14:18:46 -0800 (PST) Received: from wasted.cogentembedded.com (ppp25-138.pppoe.mtu-net.ru. [81.195.25.138]) by mx.google.com with ESMTPSA id a1sm5258461lbi.11.2015.01.21.14.18.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jan 2015 14:18:46 -0800 (PST) From: Sergei Shtylyov To: netdev@vger.kernel.org Cc: linux-sh@vger.kernel.org, mikhail.ulyanov@cogentembedded.com Subject: [PATCH 1/2] sh_eth: use SET_RUNTIME_PM_OPS() Date: Thu, 22 Jan 2015 01:18:44 +0300 Message-ID: <1921430.9kt2FLVU1I@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.3 (Linux/3.17.8-200.fc20.x86_64; KDE/4.14.3; x86_64; ; ) In-Reply-To: <5608250.lrFkJTjgSf@wasted.cogentembedded.com> References: <5608250.lrFkJTjgSf@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mikhail Ulyanov Use SET_RUNTIME_PM_OPS() macro to initialize the runtime PM method pointers in the 'struct dev_pm_ops'. Signed-off-by: Mikhail Ulyanov [Sergei: renamed, added the changelog.] Signed-off-by: Sergei Shtylyov --- drivers/net/ethernet/renesas/sh_eth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: net-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -2960,8 +2960,7 @@ static int sh_eth_runtime_nop(struct dev } static const struct dev_pm_ops sh_eth_dev_pm_ops = { - .runtime_suspend = sh_eth_runtime_nop, - .runtime_resume = sh_eth_runtime_nop, + SET_RUNTIME_PM_OPS(sh_eth_runtime_nop, sh_eth_runtime_nop, NULL) }; #define SH_ETH_PM_OPS (&sh_eth_dev_pm_ops) #else