From patchwork Sat Aug 15 04:37:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 7020391 X-Patchwork-Delegate: eduardo.valentin@ti.com 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 96C909F373 for ; Sat, 15 Aug 2015 04:39:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C97FE20631 for ; Sat, 15 Aug 2015 04:39:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0049E20622 for ; Sat, 15 Aug 2015 04:39:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751059AbbHOEia (ORCPT ); Sat, 15 Aug 2015 00:38:30 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:35281 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbbHOEiD (ORCPT ); Sat, 15 Aug 2015 00:38:03 -0400 Received: by pdrg1 with SMTP id g1so37425933pdr.2; Fri, 14 Aug 2015 21:38:02 -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=+RJm8Ew9G0FPex83HmjrhRf8HPu+fluQx+VpkVQfT7o=; b=ccyfofu6RJyZ775ftiSb/lUB6FCuF1GGepX81y68QbRfEGI5oYmHdNBu+fyZKOPQ2B siYfASTxD5L3g6OLLEfoBwnfMSEqg11TFjOMZmpfdBl4adoobZa7hZG9Kw5Ss27/cbRA zgtoXuHGBdaXNJ83eMLBZnSg5wpvhMDdknYh9+4ZO7LlCfxirFN/ua4Md2r7BFEbduBw V24IO7i9mjLKW53Xl8ZiK1oE2wCp6fzkk/4XMq+cabXPgX72/H/pNL8H3sJaga4re/kj f8jS8Em/HQ7NG0J6uUKcmmQhJ0hxavznjW31pGh6xqIghXd0uVc5T6nclPCGbHAukIgZ F+Rw== X-Received: by 10.70.48.133 with SMTP id l5mr20858070pdn.162.1439613482540; Fri, 14 Aug 2015 21:38:02 -0700 (PDT) Received: from localhost ([2601:647:4200:88bc::b05e]) by smtp.gmail.com with ESMTPSA id c12sm7680066pdk.47.2015.08.14.21.38.01 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 14 Aug 2015 21:38:01 -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: [PATCHv4 4/4] serial: imx: use SET_*SYSTEM_PM_OPS helper functions Date: Fri, 14 Aug 2015 21:37:48 -0700 Message-Id: <1439613468-22366-5-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1439613468-22366-1-git-send-email-edubezval@gmail.com> References: <1439613468-22366-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=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, 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 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 24ed0fa..bdda44d5 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -2277,10 +2277,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, };