Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2690021rdh; Mon, 30 Oct 2023 05:08:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGe82+40KFetPN/ui0mc12hT9uH5bNVIPcEO8wPUL0iyvR4laqvmoZFCNJKLboVPM8GqNll X-Received: by 2002:a05:6a00:b55:b0:690:d4f5:c664 with SMTP id p21-20020a056a000b5500b00690d4f5c664mr7596206pfo.11.1698667717313; Mon, 30 Oct 2023 05:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667717; cv=none; d=google.com; s=arc-20160816; b=fQh1mTon7Nwhcl4qdc3Mcfi/A7CzgVr6voPuJTTpy3CddVB/QcxUmic5aq0GMJJhoZ Q62i8a+h15USWSmYfCP10FGQolBeKAO9UUEDZvxezoL7QHHApzS9BAdEvZ8H30yatsFe G4hgARu57zQ8ICBS1e+QQxi0mani3UMxsl7RTqfpytpAX9HesQrXhn0nCI0v8OGlZdJJ 6XEVpvjXhziZ8R/c1NqKFjkH0rUq/yV3eInqp78FXWt4u5DpSFGTna0OqkAZbODwLgCf Z0lUEzow29gG3wIawR/oOlfE7uhay5UVmlP0D9kqUxZ2IvxwbE6S9u64wf+nr6xK8Sff GpEg== 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=fMfZR1nNl6zplPylsklygvgH7cxMYT21KwkYrKm28bw=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=e8NGFV9yPuCoKCXJdKUHwQ735u8h4xz8HS6rKz3h8LgQeVm/KLc60NvvjX2PBrwoXQ swEDh3EZ9AcfBR8BDCJ1E9vdMjBvotMsU10N3nYWaR2SUsiFBAPCwADhBo0PsBRvcAxW gBTuF0vqd2+EaR1Pnxjb4M6CFTqWCwCbMVeQHyt5M87gMnRBhKe10RuqD6TKe1JQxPyj YE091Dt6C9qhqT2RC+XQ3QHFq9+dJFUvzvP0v2nQmlTzHhg1SxE/tNCT0zXqDdV/Au5r LXjpkzHNrU5pcRDwtHsKRiiXio/KB2nxZQOILcjWLVZvU0a6p2foHdeXqp34jtuW/fhy q7tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aCSMskHa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id by31-20020a056a02059f00b005b95fbb1747si3567828pgb.761.2023.10.30.05.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aCSMskHa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D2155804C238; Mon, 30 Oct 2023 05:08:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233318AbjJ3MIU (ORCPT + 99 others); Mon, 30 Oct 2023 08:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233224AbjJ3MHr (ORCPT ); Mon, 30 Oct 2023 08:07:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FCD8E9; Mon, 30 Oct 2023 05:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698667666; x=1730203666; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+S7wel8AALKq2+6uysyF1Wgw77L8D37D7NPLQyJaAcc=; b=aCSMskHaqkvN+rJyUWJPxWboIAKh2LtTmfNxshWLZsZB8Tce7wKzEKll L8pJ38mCFPkU/rluxAwPXNI86+dO52zGNsSpBVRvwWTNDRy3uAN9rXnx4 PqIK9D7u/TmGeKiB1EcoZmA3anash4Uch8MCYKM/wEu5P+y95Tf+l1Zmp ccn7uh2HbTgsYJaYS/bdVUSnDnZmlhqEy0jHotqhjKZU5JnUHLrOY0t6T U6ON/xnMb8sSZZNpsH98+OsrM3G6P11mllnXoH7CDKn+r6xGiTSYjuA/O UHC9qF4MrgDpZvyN3+ohvagqqhauNOFd8Ob6IVE79L+9u1Kx8n1piLMUk A==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691313" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691313" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 05:07:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="826036534" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036534" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 30 Oct 2023 05:07:40 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6E61249C; 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 13/17] pinctrl: lewisburg: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:30 +0200 Message-Id: <20231030120734.2831419-14-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:08:34 -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-lewisburg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-lewisburg.c b/drivers/pinctrl/intel/pinctrl-lewisburg.c index aa725a5d62b9..a304d30ea9ed 100644 --- a/drivers/pinctrl/intel/pinctrl-lewisburg.c +++ b/drivers/pinctrl/intel/pinctrl-lewisburg.c @@ -9,6 +9,7 @@ #include #include #include +#include #include @@ -301,8 +302,6 @@ static const struct intel_pinctrl_soc_data lbg_soc_data = { .ncommunities = ARRAY_SIZE(lbg_communities), }; -static INTEL_PINCTRL_PM_OPS(lbg_pinctrl_pm_ops); - static const struct acpi_device_id lbg_pinctrl_acpi_match[] = { { "INT3536", (kernel_ulong_t)&lbg_soc_data }, { } @@ -314,7 +313,7 @@ static struct platform_driver lbg_pinctrl_driver = { .driver = { .name = "lewisburg-pinctrl", .acpi_match_table = lbg_pinctrl_acpi_match, - .pm = &lbg_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, }; module_platform_driver(lbg_pinctrl_driver); -- 2.40.0.1.gaa8946217a0b