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: 6282081 Return-Path: X-Original-To: patchwork-linux-omap@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 D75529F313 for ; Mon, 27 Apr 2015 18:24:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 12AC820390 for ; Mon, 27 Apr 2015 18:24:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F90E203A9 for ; Mon, 27 Apr 2015 18:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965060AbbD0SYp (ORCPT ); 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-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=Xx4U+yIu6racGBgvI7qX/SXIk3gGf6a7drTqEtwI0CbejrD9eXBj7+sXbuycpi7EGc GfK0L6z4jIUeRJ4ASF0DUTOybNEF4u0osw6ivXCwyvP99s6fN5R4GF8G7NhiPNjNouiL 8Z4xYa3lBPh4tu27FBbCP21fP22wq1Epho0UuSl3Qm8/B2vwAMpCDXmphOf2cKTWIoh0 I/iAwEMUc/DuY83cozc+6poXmYbjEWjVvoNlK4U2dooIh71DwneKoblc/3xa5EWB0ace Xy0rGyGQ1vt7fIewROOL+Y81uoSEmramBPqqFA++QauYxgyCCQB8B0u7e/it/l8rKIWB ZnSQ== X-Gm-Message-State: ALoCoQmA2nhuvRVkBoeBo3A9RLGmtTeotvzwZJ0dcsVjrVgT43STo2AiNw+qrstL1F+6CJ4g2ZMg 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: bulk List-ID: X-Mailing-List: linux-omap@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=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) } };