From patchwork Tue Aug 11 17:21:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 6993871 Return-Path: X-Original-To: patchwork-linux-pm@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 BBB769F344 for ; Tue, 11 Aug 2015 17:22:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 040F02066B for ; Tue, 11 Aug 2015 17:22:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33E3C205F4 for ; Tue, 11 Aug 2015 17:22:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932887AbbHKRWC (ORCPT ); Tue, 11 Aug 2015 13:22:02 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35794 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754432AbbHKRVq (ORCPT ); Tue, 11 Aug 2015 13:21:46 -0400 Received: by pacgr6 with SMTP id gr6so54997065pac.2; Tue, 11 Aug 2015 10:21:45 -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:in-reply-to:references; bh=5D7Ig1hRKee/WCSO8BVobIMV45ZMH+gt/1ogDvMmtDY=; b=f2R/DJy6PX7lXwXwrfLSpMrP9YMZOsi3l390AFbg+sZzMfOOZfNMvv/JTufySA8Hjo PgDhXtgMJb9HnYcDHuDjHd/7Zghu0dp+sOcHxuskL4dZzY1CC3lbfk9A7PXNbphibJeD xzT/Z8aaxPNQiVSv75C1sWfhlHpKR6PNW0xltqPfOjB6r2ke4FZWp6q6/0yfCVTB3M3d KLdQKkF8rtd93Mof8utA8TE4e3diyxskl6PMZL9TcDyq99eg8/8/iIL8xJk7AFZ54Ess 8Xy/IM+N2dg3aIjaTfhQ+buWTQa3zCDzsggK4MtgJOlgykog6mBTUl1yYSqJERkbbcFd YXqA== X-Received: by 10.66.160.40 with SMTP id xh8mr29426699pab.10.1439313705619; Tue, 11 Aug 2015 10:21:45 -0700 (PDT) Received: from localhost (amazon.gigabitethernet4-0-6.asr1.snv2.gblx.net. [64.211.110.86]) by smtp.gmail.com with ESMTPSA id u10sm3017991pdp.85.2015.08.11.10.21.44 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Aug 2015 10:21:44 -0700 (PDT) From: Eduardo Valentin To: Greg Kroah-Hartman , Jiri Slaby , Fabio Estevam Cc: Sascha Hauer , Linux PM , linux-serial@vger.kernel.org, LKML , Eduardo Valentin Subject: [PATCHv3 8/8] serial: imx: use SET_*SYSTEM_PM_OPS helper functions Date: Tue, 11 Aug 2015 10:21:27 -0700 Message-Id: <1439313687-28502-9-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1439313687-28502-1-git-send-email-edubezval@gmail.com> References: <1439313687-28502-1-git-send-email-edubezval@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Instead of setting manually each field, use the helper functions provided by the PM subsystem. Signed-off-by: Eduardo Valentin --- drivers/tty/serial/imx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 4aab9fc..4c3cd62 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -2266,10 +2266,10 @@ static int imx_serial_port_resume(struct device *dev) static const struct dev_pm_ops imx_serial_port_pm_ops = { SET_RUNTIME_PM_OPS(serial_imx_runtime_suspend, serial_imx_runtime_resume, NULL) - .suspend_noirq = imx_serial_port_suspend_noirq, - .resume_noirq = imx_serial_port_resume_noirq, - .suspend = imx_serial_port_suspend, - .resume = imx_serial_port_resume, + SET_SYSTEM_SLEEP_PM_OPS(imx_serial_port_suspend_noirq, + imx_serial_port_resume_noirq) + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(imx_serial_port_suspend, + imx_serial_port_resume) .prepare = serial_imx_prepare, .complete = serial_imx_complete, };