From patchwork Mon Apr 27 18:24:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Grygorii.Strashko@linaro.org" X-Patchwork-Id: 6282181 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 105F6BEEE5 for ; Mon, 27 Apr 2015 18:28:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4648203AD for ; Mon, 27 Apr 2015 18:28:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E61B4203A9 for ; Mon, 27 Apr 2015 18:28:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ymnix-0001rl-VD; Mon, 27 Apr 2015 18:25:43 +0000 Received: from mail-lb0-f174.google.com ([209.85.217.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YmniI-0000Vp-Cb for linux-arm-kernel@lists.infradead.org; Mon, 27 Apr 2015 18:25:04 +0000 Received: by lbcga7 with SMTP id ga7so89073149lbc.1 for ; Mon, 27 Apr 2015 11:24:39 -0700 (PDT) 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:in-reply-to :references; bh=/q9RMpoHptTpg7/WxBmdHII6zrP8OIgLprRCA/Ut9hk=; b=H9z32vvRJPdDxeYpCG10WT1kmD4mFm0PyJTSNtcsGDHoANjz6yUyjqsEhJ17TneHne fSI4dLM4PgLkG3cLyifp3v+cHjH3SmcUWGpvVGWg4/dTOFJcSciDMUnLRzWt85MMLbTu HVvVuL51nxGudXKcvgaL8Yb1C4+rTspUT2vaV98CE17NeAVgHfIyeIOuBALCixY3VHyD MZI3nSphTD3xJ3nosn1ybvbhXglbQHUtIydhv3Yt729eXg7qYodO2wCQH0k7wxAWJlIR cvXFrd3XDpNaKN3dUCC0StIM216P54bOoOaEo1YSY3FhQfYiNu80wOPiKX1gJSYFM7f+ EuCw== X-Gm-Message-State: ALoCoQkLIJ/sXHZf1Bsr59pLudSWJ/DFLHqtpl7K7CfpNEIKNDxNbeG7YUpXj17G8/g3KwLJdour X-Received: by 10.152.197.2 with SMTP id iq2mr11232128lac.103.1430159079814; Mon, 27 Apr 2015 11:24:39 -0700 (PDT) Received: from localhost ([195.238.92.128]) by mx.google.com with ESMTPSA id s5sm4953000lbr.18.2015.04.27.11.24.39 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 27 Apr 2015 11:24:39 -0700 (PDT) From: To: "Rafael J. Wysocki" , Pavel Machek , Len Brown , linux-pm@vger.kernel.org Subject: [PATCH 3/3] ARM: omap-device: use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS Date: Mon, 27 Apr 2015 21:24:32 +0300 Message-Id: <1430159072-31440-4-git-send-email-grygorii.strashko@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430159072-31440-1-git-send-email-grygorii.strashko@linaro.org> References: <1430159072-31440-1-git-send-email-grygorii.strashko@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150427_112502_713159_8345B144 X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Nishanth Menon , ulf.hansson@linaro.org, Kevin Hilman , Grygorii Strashko , Tony Lindgren , linux-kernel@vger.kernel.org, Santosh Shilimkar , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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: Grygorii Strashko Use recently introduced macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to set up PM callbacks. This also fixes missed assignment of .poweroff_noirq() callback. Cc: Tony Lindgren Cc: Nishanth Menon Cc: Kevin Hilman Cc: Santosh Shilimkar Signed-off-by: Grygorii Strashko --- arch/arm/mach-omap2/omap_device.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index 166b18f..83a0f5a 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c @@ -688,11 +688,8 @@ struct dev_pm_domain omap_device_pm_domain = { SET_RUNTIME_PM_OPS(_od_runtime_suspend, _od_runtime_resume, NULL) USE_PLATFORM_PM_SLEEP_OPS - .suspend_noirq = _od_suspend_noirq, - .resume_noirq = _od_resume_noirq, - .freeze_noirq = _od_suspend_noirq, - .thaw_noirq = _od_resume_noirq, - .restore_noirq = _od_resume_noirq, + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(_od_suspend_noirq, + _od_resume_noirq) } };