Message ID | 20231122105401.11006-1-raag.jadav@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1234622vqb; Wed, 22 Nov 2023 02:54:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvux2yaF8wYlQvMjRl+mccrDrnPzO+5bo5Adqdlk/vzMe3hxSOnIp7UK2wrqoivtKXac4P X-Received: by 2002:a05:6a20:be82:b0:186:a0d9:4189 with SMTP id gf2-20020a056a20be8200b00186a0d94189mr1505593pzb.35.1700650463400; Wed, 22 Nov 2023 02:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700650463; cv=none; d=google.com; s=arc-20160816; b=CcvNzQP+iKfPOkKwwcaG/GjEzAJukPedymQ4xWcbGRiIAELkYVZViMFbiRNDJ3q1k4 KD51BjHUWBgrzcQYRd1T9HlUtZJHtwdKx02AfTFx7HxkGg6nQ/5/sdctJSpCxa8ccvhR fAa/0CaJ7diiLo32UhTXg7pg/X3hqwXJ2F7p1j1BVmRl7AH/yKdbqV/ceim/UtaN2o8q 5pDkZJ43r+nX1vuZsEkXbkwmSQSeG5MCAPatdYAZZpsC5hxbMJ262BM1K2Ds+rjcadH5 aTtGeXxCfWFeft0Qx4ZYcZSYJdV7sJubFY9/m7c/1FIC0SuqsNVBIbkhA9B+b93xxnNv +tTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=HCCqvJEPullNYp/cLule6EY/mJ6fCrfexRKwnRzu1Ys=; fh=ZSJZwaGQgZrvOMxldwIip3MoOAHW4PS3iIJ8X4wG1BY=; b=oXFpvfXxuFJ74k6ElxZLxLMGipNFIQuiIv8/CPEKttIVOnYsbAGt8z4m4kJXm0S2Kp HHRK/IEas9z7IfvgPdTMo5ECc2EoxOjedaQrG/ZVy5UGhh2fwsxpAdn0ZstZkbCOaSNE BsmPeBTUAR44Bt6g4C9xzXXyQy0HnlJVyTexEZn1tg1JpIhsrQrOigCDNzs8PiTvxcC5 DPOapXzVhiQSzV2RUiF7BA1+yMfejGFUNRuhivD6GRyEvYBzab5+fvg4zfZuqUVpruT4 y8eq4JNNdZ0Grxrh4/E1u05U5shF9yS6rjbpCi5AjTneBZEYDTzhhLaOBMSssbucYzHT Z5Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=R701NI3F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id jf18-20020a170903269200b001cf66a301afsi4999496plb.418.2023.11.22.02.54.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:54:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=R701NI3F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EC17680F697A; Wed, 22 Nov 2023 02:54:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343684AbjKVKyS (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Wed, 22 Nov 2023 05:54:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231461AbjKVKyQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Nov 2023 05:54:16 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0700ED8; Wed, 22 Nov 2023 02:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700650453; x=1732186453; h=from:to:cc:subject:date:message-id; bh=L6bHYCHdpbaSIiykCkw+XvZL0tDlt0dAm6zfnBSOkH4=; b=R701NI3FN2a/a53VP7VD5zOpFbAB2cPL4WBcvOlBOrKYcWlfE6rgIfja 13myN08Xj0sbAP8W09WXVZY7f3bSnXALrBsS+RD717sof98JtMy+jcQwA O+DWBV6q6i63ol/HWHp/q9MMa0Qu3TCGyWk7rUNw+5DPqzekrjUVD1u1a fc8QNQcxXhaWWZHcF++9mUiG7j3nVJQiybS849k5Ulob4AVkgDH+FSnvk xlq0svEzeikqmbhZLv9aj+nxdWPkk0pGuHA2eLB1lv7qHxJbWQ3VGG5qj 6eG+9OaDzAghZAc0+Ye/kjXr6DTRv1WO5ZuCoc3gxRLSotyH9FuCO5MrO Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="372207210" X-IronPort-AV: E=Sophos;i="6.04,218,1695711600"; d="scan'208";a="372207210" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2023 02:54:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,218,1695711600"; d="scan'208";a="8393146" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa002.fm.intel.com with ESMTP; 22 Nov 2023 02:54:10 -0800 From: Raag Jadav <raag.jadav@intel.com> To: mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Raag Jadav <raag.jadav@intel.com> Subject: [PATCH v1] pinctrl: intel: use the correct _PM_OPS() export macro Date: Wed, 22 Nov 2023 16:24:01 +0530 Message-Id: <20231122105401.11006-1-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 02:54:18 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783261260499983936 X-GMAIL-MSGID: 1783261260499983936 |
Series |
[v1] pinctrl: intel: use the correct _PM_OPS() export macro
|
|
Commit Message
Raag Jadav
Nov. 22, 2023, 10:54 a.m. UTC
Since we don't have runtime PM handles here, we should be using
EXPORT_NS_GPL_DEV_SLEEP_PM_OPS() macro, so that the compiler can
discard it in case CONFIG_PM_SLEEP=n.
Fixes: b10a74b5c0c1 ("pinctrl: intel: Provide Intel pin control wide PM ops structure")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/pinctrl/intel/pinctrl-intel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
base-commit: c5860e4a2737a8b29dc426c800d01c5be6aad811
Comments
On Wed, Nov 22, 2023 at 04:24:01PM +0530, Raag Jadav wrote: > Since we don't have runtime PM handles here, we should be using > EXPORT_NS_GPL_DEV_SLEEP_PM_OPS() macro, so that the compiler can > discard it in case CONFIG_PM_SLEEP=n. Obviously correct fix, I've pushed to my review and testing queue, thanks!
On Wed, Nov 22, 2023 at 04:24:01PM +0530, Raag Jadav wrote: > Since we don't have runtime PM handles here, we should be using > EXPORT_NS_GPL_DEV_SLEEP_PM_OPS() macro, so that the compiler can > discard it in case CONFIG_PM_SLEEP=n. > > Fixes: b10a74b5c0c1 ("pinctrl: intel: Provide Intel pin control wide PM ops structure") > Signed-off-by: Raag Jadav <raag.jadav@intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c index 2367c2747a83..d6f29e6faab7 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.c +++ b/drivers/pinctrl/intel/pinctrl-intel.c @@ -1879,7 +1879,7 @@ static int intel_pinctrl_resume_noirq(struct device *dev) return 0; } -EXPORT_NS_GPL_DEV_PM_OPS(intel_pinctrl_pm_ops, PINCTRL_INTEL) = { +EXPORT_NS_GPL_DEV_SLEEP_PM_OPS(intel_pinctrl_pm_ops, PINCTRL_INTEL) = { NOIRQ_SYSTEM_SLEEP_PM_OPS(intel_pinctrl_suspend_noirq, intel_pinctrl_resume_noirq) };