Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933708AbbHKBgS (ORCPT ); Mon, 10 Aug 2015 21:36:18 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:33351 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933635AbbHKBgM (ORCPT ); Mon, 10 Aug 2015 21:36:12 -0400 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: [PATCHv2 8/8] serial: imx: use SET_*SYSTEM_PM_OPS helper functions Date: Mon, 10 Aug 2015 18:35:49 -0700 Message-Id: <1439256949-626-9-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1439256949-626-1-git-send-email-edubezval@gmail.com> References: <1439256949-626-1-git-send-email-edubezval@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 35 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 5053c82..8cd7e63 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -2250,10 +2250,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, }; -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/