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: 47640 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 866BF2121F for ; Mon, 27 Apr 2015 18:24:52 +0000 (UTC) Received: by lamp14 with SMTP id p14sf28806745lam.3 for ; Mon, 27 Apr 2015 11:24:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=gEXt6RVg8O4sGGWFr96YSR5bjKu5OOWkQe8zvUsXQX0=; b=bmMWt+tMA/3vfc2Lm+KLzgKE6Yv2VuMPFCg+MGIf2+sivrOFmKxWf/CnWNYO180+rT v45FOQqPGrYJ1QOIIWMegWbPrznmyLottZdmqaLZUvEkv08xNM4+n/C1DMgg2JlfsoID vdCy4zSCS6wIix4kH0VSIob1PmggFRjGdM+M89UvFwBcr6I7tRBfY7jvSJvVNZt+JFpc lcFeIUes8Bwtctxzb7X79DITfVybT9OxXWEdmdQwKQECC6FUOTdgYKZQV9Uu+BJQYOmN cQ/qca4r3zoMHsTByFEC0YoaRKhE0B9OlyKocvaohidHzpfjCrGJWDgCqCb+yENSUSyT jEpQ== X-Gm-Message-State: ALoCoQlksvaf2E87wW48uEXHTPZDKR0PdXonE+HuUD7einReWlEHvZzdRYKx30147U9aHf+p9VPm X-Received: by 10.152.206.36 with SMTP id ll4mr8104388lac.6.1430159091513; Mon, 27 Apr 2015 11:24:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.121.98 with SMTP id lj2ls741553lab.94.gmail; Mon, 27 Apr 2015 11:24:51 -0700 (PDT) X-Received: by 10.152.22.168 with SMTP id e8mr11008874laf.27.1430159091226; Mon, 27 Apr 2015 11:24:51 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id y10si3382945lal.107.2015.04.27.11.24.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Apr 2015 11:24:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbcga7 with SMTP id ga7so89077066lbc.1 for ; Mon, 27 Apr 2015 11:24:51 -0700 (PDT) X-Received: by 10.112.29.36 with SMTP id g4mr11504816lbh.56.1430159091110; Mon, 27 Apr 2015 11:24:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp1438744lbt; Mon, 27 Apr 2015 11:24:50 -0700 (PDT) X-Received: by 10.70.100.36 with SMTP id ev4mr24507088pdb.73.1430159089443; Mon, 27 Apr 2015 11:24:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pr7si30967296pdb.236.2015.04.27.11.24.48; Mon, 27 Apr 2015 11:24:49 -0700 (PDT) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965060AbbD0SYp (ORCPT + 5 others); Mon, 27 Apr 2015 14:24:45 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:34928 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965024AbbD0SYl (ORCPT ); Mon, 27 Apr 2015 14:24:41 -0400 Received: by lbbuc2 with SMTP id uc2so88921763lbb.2 for ; Mon, 27 Apr 2015 11:24:39 -0700 (PDT) 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 Cc: ulf.hansson@linaro.org, , , , Grygorii Strashko , Tony Lindgren , Nishanth Menon , Kevin Hilman , Santosh Shilimkar 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> Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: grygorii.strashko@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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) } };