Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2689861rdh; Mon, 30 Oct 2023 05:08:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtUUkzuqpQoUU8Rp3hdrk0oBJjn/sjoBleZ0eEJGsj1UUfqDkSnfi1PWkhg3iiNABz2s/x X-Received: by 2002:a17:902:dac9:b0:1cc:5612:85 with SMTP id q9-20020a170902dac900b001cc56120085mr1085442plx.45.1698667702766; Mon, 30 Oct 2023 05:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667702; cv=none; d=google.com; s=arc-20160816; b=aEr9oGTv/yM5MZNGGZeqA5nGmPFMUeQhfDxUidnwNOO7lfKxgpCqnLvySNVMMfjnoD WluTnGyk+UyDEXMBVynt2Ja3jXxvkEmwQ8zUDrYn8kWcLL2dHYV5LdBDFMx3lWK4ORk8 hCKLAq9tNbaxIgVKEFduUtWHYK8X3KU7+8slm9tP9c/rfRUnbSERkC8+aBbnaXcDFhqf E1PqgV/OtYqJ7XJlqT+34LXYMha0HB0l8ke+6uCmJXk23tRDppOLDIgxSzYOwC26zBSF 7GMzAb2QQAsL09a0tzJeqWQXTNgsrQok3R5NXx9s9hPObfdMamdDCM6UTQp5YYi4rXF5 c4ww== 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=npjSFI9akFyofhkCffvOAOa4ELhG0bVH8nYKDCLvQlE=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=sfDnq0a+BCqyZhCYY4HIdn/TGftCwgqkdfIVTfO7RZP/kFGEUTX60qGg3k1Y6aaTaj JPKWwoR5FGSFTacyrRZXFuwZEjF5UIRD0s+w1ByCMGrhM5LkIFqN91971SynTA3c31bm xhqrgDdOjMDyinEsIOFmRusQCGNy8UgtkrLWTd0QTymZfkSKEfoOd8xsorB8nZHdrze6 0Zapuv4u/OoZJwJAS6W6XtERt1jO/1/b3bYXiRf0ThIpxgz4ft0lpTUVU25rScpJq+Qy a+YmdGeXB/B9dE8zbzlicwdzfj3ZbOkuISW90BO73bxYcrWM8iUaNBWiGWU5xg+yJcBY Cq6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L3jjXhHo; 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 c18-20020a170903235200b001c5f37aeebdsi5077955plh.579.2023.10.30.05.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:08:22 -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=L3jjXhHo; 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 1B67D804C232; Mon, 30 Oct 2023 05:08:20 -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 S233293AbjJ3MIF (ORCPT + 99 others); Mon, 30 Oct 2023 08:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233197AbjJ3MHq (ORCPT ); Mon, 30 Oct 2023 08:07:46 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99FC5DB; 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=1698667665; x=1730203665; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0vUL7V1SFJx6uAwoQ+SfYs4Wur92WJhuHwbMwyARaco=; b=L3jjXhHo3qdLyXzUPCDwgNzl9buoXGJRoCXJqvGvX9D3eDjLL7AkN/06 sDqVxp2bXGOtm/+Ix/Ab42+D9pCZGlmaOe6z2yM6gk1fSPxt0nSu7qN68 R7Q/6jwhYNlp0jXiuEW6ICBx+zBKBjrhiN5xDSEqCEVOychAGUqQ8of+p VtbclOLR7sEHtI41F2WakxdK7PUCDMDsHxpzRpQiRfrG/hfgh0H/y529o k+pWpCAz5jtVutQJiPJXsIcbBVYacgrHimxyTd4+GE1O6mTbBR/zgycTX jYKdYROe27daX5pLOQdiN1oaIFf4EnHpvNjRLOvbT1jXHz1HWz7jkcrH2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691292" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691292" 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:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="826036530" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036530" 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 42227403; 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 08/17] pinctrl: emmitsburg: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:25 +0200 Message-Id: <20231030120734.2831419-9-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:20 -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-emmitsburg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-emmitsburg.c b/drivers/pinctrl/intel/pinctrl-emmitsburg.c index 099ec8351d5f..e4798d32492c 100644 --- a/drivers/pinctrl/intel/pinctrl-emmitsburg.c +++ b/drivers/pinctrl/intel/pinctrl-emmitsburg.c @@ -9,6 +9,7 @@ #include #include #include +#include #include @@ -358,14 +359,12 @@ static const struct acpi_device_id ebg_pinctrl_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, ebg_pinctrl_acpi_match); -static INTEL_PINCTRL_PM_OPS(ebg_pinctrl_pm_ops); - static struct platform_driver ebg_pinctrl_driver = { .probe = intel_pinctrl_probe_by_hid, .driver = { .name = "emmitsburg-pinctrl", .acpi_match_table = ebg_pinctrl_acpi_match, - .pm = &ebg_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, }; module_platform_driver(ebg_pinctrl_driver); -- 2.40.0.1.gaa8946217a0b