Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4163892rdb; Thu, 14 Sep 2023 13:55:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2Lu8kSh3Lwjtj2Q5QYorj8M2LwSHj59MwHZY6ThJ6hk0oAzN0ZXLH/+LwzJfCVjfUqQfI X-Received: by 2002:a05:6a00:14c5:b0:68e:390d:8694 with SMTP id w5-20020a056a0014c500b0068e390d8694mr8221506pfu.33.1694724902630; Thu, 14 Sep 2023 13:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694724902; cv=none; d=google.com; s=arc-20160816; b=Wm7uFH0Ww74yYzhou33P6nJhl7/0Y9XnWfh37PDpT2IeqhAubDBoE9uBmPObf1Sii8 ggdDOJHqekiDGQ0cyu6lk3vQnQ2bNpSdieBsbSu2A8Wyj0l2ApFXdLAFeIc3PASRbb7C rIZ1Jy4JTYKurwfPsgM0WFGuz+Zuv7PwYLqsYCMfzX6d1vTxG4ikiXfdkO90rxwPZhtO SVMWkHEYIgBx3IERW5m/H0lZCdiIED9Skozs2KaUQH14UiAPP4ofN40FW7OPDKZYtDsi KXjgOG1uWCuUqPLxk4ey3wLCYFzxR+NEWbHveKwQYVP+5GgYDZjI5UXQYpvEOCNj//p2 nKbA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qpNWS38UajD69TK6qtKglrFD9kQLiHSe+aaHNyCngyY=; fh=msJyvNxU746DPxHNUm730fSh0XzR8hw6ZQ26j1rHfOg=; b=QLoQZ+XZiELFHWdfUUwHWVTJoXm9dW6GFjNG4POxWwvSUD5E9G4W3kG4iLyPFRAKvO Fm7TAWkIzy8rQytD9IDF73j/fiM1Qe5bN2N+mGecHlyssspcdBhQ70cWQ6dIgubGsarX 5bxPciUPqj6T5Ay+FuFT2SNOF9DNIRHs51O6qzTf4SP3kyW8axtDDSI8W/0qvzNRkYqJ 2xOiwrBA23Rh9Xqc6UVr1M/TaoqudLGtJyQYVwZEykes0Lif3Uy5EtDSRwPsa6AvrEtu vJ0abHJGltQ4ILoMJtr++nphSwVpGzvImG/V4PM4aeVFltKd+9MVDwnU6irGwZ6M3LtW BXPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=L2RkqCAO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a35-20020a631a63000000b0053fb354c191si2022303pgm.861.2023.09.14.13.55.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 13:55:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=L2RkqCAO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9732D8078E36; Thu, 14 Sep 2023 08:09:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240687AbjINPJf (ORCPT + 99 others); Thu, 14 Sep 2023 11:09:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240408AbjINPJd (ORCPT ); Thu, 14 Sep 2023 11:09:33 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D4BAA8 for ; Thu, 14 Sep 2023 08:09:29 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38ECunMJ020490; Thu, 14 Sep 2023 10:09:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= PODMain02222019; bh=qpNWS38UajD69TK6qtKglrFD9kQLiHSe+aaHNyCngyY=; b= L2RkqCAOJmW0NWKZsdwiBtMYAc8va7+WcNOJUnG+uzvt70HIzX+cw60yLx+DAM4d 5UlVQYwW/vfOjp7p18pBBfj+Ni+kNFoNrGf60LT8Oh6Y7Y2vTQTFPq5wMYskNUfl syvRwXyn5AVg1UFemhFMG6uRukX4lnrlJ14MAj/4XJ0OyYGIMKILiekDVkeNBxD1 pFucMF1QGY7tGSqHaX8lTQcHX6wW+xP0Xpm5XSxZ51jrMTqq2yAwAu5hJkG9Tk9o E7LoiR8qFZddlkgW3Gr4me18CzUP1CqehnPddRy9u/bwRGmcJykATIZpemHOWssV aKwOawRS/pQzrN1eL8pdkA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3t2y7sj90x-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 10:09:23 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Thu, 14 Sep 2023 16:09:20 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Thu, 14 Sep 2023 16:09:20 +0100 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.61.65.215]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 8B6F63575; Thu, 14 Sep 2023 15:09:20 +0000 (UTC) From: Richard Fitzgerald To: CC: , , , Richard Fitzgerald Subject: [PATCH 2/3] ASoC: cs35l56: Use new export macro for dev_pm_ops Date: Thu, 14 Sep 2023 16:09:17 +0100 Message-ID: <20230914150918.14505-3-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230914150918.14505-1-rf@opensource.cirrus.com> References: <20230914150918.14505-1-rf@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: ROicgJ398I1eI0b7bPfdXemKNiuoBRtq X-Proofpoint-ORIG-GUID: ROicgJ398I1eI0b7bPfdXemKNiuoBRtq X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 08:09:38 -0700 (PDT) pm.h now has macros to create and export the dev_pm_ops struct only if CONFIG_PM is enabled. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/cs35l56.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs35l56.c b/sound/soc/codecs/cs35l56.c index e6e366333a47..b7d3f768635b 100644 --- a/sound/soc/codecs/cs35l56.c +++ b/sound/soc/codecs/cs35l56.c @@ -1229,13 +1229,12 @@ void cs35l56_remove(struct cs35l56_private *cs35l56) } EXPORT_SYMBOL_NS_GPL(cs35l56_remove, SND_SOC_CS35L56_CORE); -const struct dev_pm_ops cs35l56_pm_ops_i2c_spi = { +EXPORT_NS_GPL_DEV_PM_OPS(cs35l56_pm_ops_i2c_spi, SND_SOC_CS35L56_CORE) = { SET_RUNTIME_PM_OPS(cs35l56_runtime_suspend_i2c_spi, cs35l56_runtime_resume_i2c_spi, NULL) SYSTEM_SLEEP_PM_OPS(cs35l56_system_suspend, cs35l56_system_resume) LATE_SYSTEM_SLEEP_PM_OPS(cs35l56_system_suspend_late, cs35l56_system_resume_early) NOIRQ_SYSTEM_SLEEP_PM_OPS(cs35l56_system_suspend_no_irq, cs35l56_system_resume_no_irq) }; -EXPORT_SYMBOL_NS_GPL(cs35l56_pm_ops_i2c_spi, SND_SOC_CS35L56_CORE); MODULE_DESCRIPTION("ASoC CS35L56 driver"); MODULE_IMPORT_NS(SND_SOC_CS35L56_SHARED); -- 2.30.2