Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2021229pxb; Sat, 28 Aug 2021 02:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3dHrq55jOE8IfamISyPmb1EPQxGXrFQu49k2d6CpnzrNuCMAQ7Zg0WtWElgEG/zJnlcMC X-Received: by 2002:a6b:3c16:: with SMTP id k22mr10887288iob.130.1630141372136; Sat, 28 Aug 2021 02:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630141372; cv=none; d=google.com; s=arc-20160816; b=ZK+SsMfa5dnW46311eJ3WLfnMPu3+uTMdRZkg+yvPh2sO7Dot4WlwfpH9RuYhcwgO1 Bp1hlM+GmFHkA+tIrNdyo7MMs7yM4l1vDp9ugqQJVPyieQ9GtxPB67oOVczlltTTBTpU D6uLQv0bo1jmQerQ5an8HH4iUUJU/GvCtwNnOUguJ5gAJboT0KyW79yTCCLOq67ioxnq VL4SbnEwgYOOU6br3OkzXz/LH8XbN+IzjOAgJ9f+xi2gKJu9azIKqovFXgtvLkDMWGkL 2yWui18haxu5FxaklPNseg6cWzgmmqF9K7Es64SJ4UejkMxAj5wVZxpNAHw1uFbNXKX1 22Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=AeY2/VG4mKv/Xb65a3UjIqiHyH1v9LXwhOCYt3cYXHI=; b=sleFvifAQ7JDtaVkljcs9+47stLMZKTi2QWmcWe6ZdUEhKlE18bPYouCJZ4xPO8kTI +KyBcV1wCobb7A/3BqrGp+U0XMEDZDRnFRWKFLksX7RkLhtpV/UfozqYqV7+xHymrvLu vcofJUPnxhpVHHsjhNLMkqu0Le83HW1Uu7SnWwBECcH0dm6HXDbFnIjBOVzG/4EPH75m V6M5QztEvwwsHW/RGdUrKXXeq8elyH4rmph4Be2JG0gZq063gk/Fwtc8bI2Sb0JA7pO2 pYC/+QEc5VXRylSkT12zLDPxU1YrIp2vrxuChqvP2vR5/boqdPL2tRCUADZWrT8LTNUn qSCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b60si9393747jai.29.2021.08.28.02.02.41; Sat, 28 Aug 2021 02:02:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233647AbhH1JCe (ORCPT + 99 others); Sat, 28 Aug 2021 05:02:34 -0400 Received: from mx21.baidu.com ([220.181.3.85]:58272 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233446AbhH1JCe (ORCPT ); Sat, 28 Aug 2021 05:02:34 -0400 Received: from BC-Mail-Ex30.internal.baidu.com (unknown [172.31.51.24]) by Forcepoint Email with ESMTPS id 4C6A161F9DE55F7980D0; Sat, 28 Aug 2021 17:01:42 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex30.internal.baidu.com (172.31.51.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Sat, 28 Aug 2021 17:01:42 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.62.11) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 28 Aug 2021 17:01:41 +0800 From: Cai Huoqing To: CC: , , Cai Huoqing Subject: [PATCH] dmaengine: sa11x0: Make use of the helper macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() Date: Sat, 28 Aug 2021 17:01:17 +0800 Message-ID: <20210828090117.1814-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.32.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.31.62.11] X-ClientProxiedBy: BC-Mail-Ex18.internal.baidu.com (172.31.51.12) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the helper macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() instead of the verbose operators ".suspend_noirq /.resume_noirq/.freeze_noirq/ .thaw_noirq/.poweroff_noirq/.restore_noirq", because the SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() is a nice helper macro that could be brought in to make code a little clearer, a little more concise. Signed-off-by: Cai Huoqing --- drivers/dma/sa11x0-dma.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/dma/sa11x0-dma.c b/drivers/dma/sa11x0-dma.c index 1e918e284fc0..38f318b2f80d 100644 --- a/drivers/dma/sa11x0-dma.c +++ b/drivers/dma/sa11x0-dma.c @@ -1072,12 +1072,7 @@ static int sa11x0_dma_resume(struct device *dev) } static const struct dev_pm_ops sa11x0_dma_pm_ops = { - .suspend_noirq = sa11x0_dma_suspend, - .resume_noirq = sa11x0_dma_resume, - .freeze_noirq = sa11x0_dma_suspend, - .thaw_noirq = sa11x0_dma_resume, - .poweroff_noirq = sa11x0_dma_suspend, - .restore_noirq = sa11x0_dma_resume, + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(sa11x0_dma_suspend, sa11x0_dma_resume) }; static struct platform_driver sa11x0_dma_driver = { -- 2.25.1