Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2690060rdh; Mon, 30 Oct 2023 05:08:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHhv+kj15THJVfy2EnlilDuYp6gjrO1QKFfxKUP4cVQZKvhC7nKxwuPk5hX9aQGU0KxuMkO X-Received: by 2002:a17:90b:120a:b0:27d:9f6:47a3 with SMTP id gl10-20020a17090b120a00b0027d09f647a3mr8614218pjb.31.1698667721227; Mon, 30 Oct 2023 05:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667721; cv=none; d=google.com; s=arc-20160816; b=vYddQ40YRZov8np4cl81XjGt/YXQ+J9n60UEQ5CI4MFao5UNxlXGOFeZuc46JHA8uU vEly95zmhZ7eKfbJN9Uz43uKVrbYdd5EJAJJPDAjIqmghniNGcgIzCY0yY7Ofyl2Yqyl yXvO+PhvpMy//LU7oPOMoxpCiLJvjXAbyHIdSMXvbtjiLZybipIznfeDgxwHcnK7wRnZ g1DWrRIJW8NWY6TYE+RcbsBc2okEx/he3rig0EgUlf1dv3FhLsWFQZ84tLVprcuzHw60 t1hhaWqY4+Lvg8vO/jTk+baKW9GiamA8ojyezLxlQ5AS9EbH+/dSqHj/PMlypxuWwRiC zd5w== 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=kWp98bd3z6i95Y0KaOA7S+WQrYAkme8uZdG+32BlHLE=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=ON+aM08aXhMAVSOwZV/iAGwNUnffPlHlXn1P1m4oEiOaHPPp4UPnbKPbGqSKd322FO EoXsmQgJb3wa+DtKod//mIEaJ3oAwQDL9aqrnxFeKyOD+LusVK/MEhvquCVMdVd5K4Xs Yy2e5Lu3kQMZHHWngl78FHxV0TFKiPBBjl4Lu4d/v5pv+/+ybDQpbItoArTI51SHehXE BlaGcn1PzNR0WauAuTyrksnYQobR3bfBcANbaxhaIU/ZEluJvFNE6zns3Y6DHNfMu+ES uiGwuvYA068x69qtwbM12e7n3uCo1HujbhTiGAE1K2bAC8ZqsgHSwgUmK0IXMeilmCeZ HFAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="JRMg/U3W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id pg12-20020a17090b1e0c00b002808908ff0bsi314126pjb.84.2023.10.30.05.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="JRMg/U3W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 7AF66805F5EB; Mon, 30 Oct 2023 05:08:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233308AbjJ3MIC (ORCPT + 99 others); Mon, 30 Oct 2023 08:08:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233095AbjJ3MHq (ORCPT ); Mon, 30 Oct 2023 08:07:46 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75A7FDA; Mon, 30 Oct 2023 05:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698667664; x=1730203664; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NlO/Nxi27PDJ1XDwDRDGXslxz8DRDC17jyhnCMcvik4=; b=JRMg/U3WnurXCZBj3D+Q/mp+BP7/CSZ6NC3Gi5UNJfxlVO/WhEfp1acU PP+AGXMhx6f4bbqAQouSPhmRYpdk2JhwQ/DrHqWGaSPnHKvSD/ZDWr+p7 VbiYDcSd3JUqhV0pNIqXPbWfFvr8KWe2KsEYqaulC8q85FupBcIiZEMya w6uFwQmhQ4JeNb/4NgB6qLinlx3TIeo/iyZnwmLBK5/fyhnOoSqTRXlmM G6mxdudxNv8UCsTgs8LeODONDt1+p3VzsHUS7ulkOtyy8Xq4vueNgZC7m ovIymvRgIx6sFPXVnrhXO9kV5A56GYGnxj6JOOAG9TRE/jBpN/GzgMIfl w==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="373107368" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="373107368" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 05:07:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="753771404" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="753771404" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga007.jf.intel.com with ESMTP; 30 Oct 2023 05:07:40 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 2AF373B8; Mon, 30 Oct 2023 14:07:36 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Mika Westerberg , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Linus Walleij , Paul Cercueil , Jonathan Cameron Subject: [PATCH v3 06/17] pinctrl: denverton: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:23 +0200 Message-Id: <20231030120734.2831419-7-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20231030120734.2831419-1-andriy.shevchenko@linux.intel.com> References: <20231030120734.2831419-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:08:32 -0700 (PDT) The main driver conditionally exports the PM ops structure. Switch this driver to use it instead of customly wrapped one. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/intel/pinctrl-denverton.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-denverton.c b/drivers/pinctrl/intel/pinctrl-denverton.c index 562a4f9188e4..666507f54f27 100644 --- a/drivers/pinctrl/intel/pinctrl-denverton.c +++ b/drivers/pinctrl/intel/pinctrl-denverton.c @@ -9,6 +9,7 @@ #include #include #include +#include #include @@ -249,8 +250,6 @@ static const struct intel_pinctrl_soc_data dnv_soc_data = { .ncommunities = ARRAY_SIZE(dnv_communities), }; -static INTEL_PINCTRL_PM_OPS(dnv_pinctrl_pm_ops); - static const struct acpi_device_id dnv_pinctrl_acpi_match[] = { { "INTC3000", (kernel_ulong_t)&dnv_soc_data }, { } @@ -268,7 +267,7 @@ static struct platform_driver dnv_pinctrl_driver = { .driver = { .name = "denverton-pinctrl", .acpi_match_table = dnv_pinctrl_acpi_match, - .pm = &dnv_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, .id_table = dnv_pinctrl_platform_ids, }; -- 2.40.0.1.gaa8946217a0b