Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2690655rdh; Mon, 30 Oct 2023 05:09:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHe01RWyJITYLmqkx9LADEmYSLP/b8tQ6Ps88cFZ8rF/eYEvEb6QCYieZevSPsYUBZrHBOR X-Received: by 2002:a05:6a20:938c:b0:17b:40:ccd6 with SMTP id x12-20020a056a20938c00b0017b0040ccd6mr13859233pzh.2.1698667774486; Mon, 30 Oct 2023 05:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698667774; cv=none; d=google.com; s=arc-20160816; b=oYfCQ39BNT0rbxujb8parCaPG/Sa6y8ti+52VQCTAXrvzG94iJZNU/iEQmi6cI0LUM hZ66+yhmRzAWUQbj6P09IYnC3mHZUFa0xWJEzEjVnFB3pqwQaAuq7Wq6j7rPZD9leIoK ONCT+QIcpTWNU+v8YTYNTzB9j9tvqk5TgqY0O9uoengp8BarfwBOEwxo07DHSJ8VcbP1 N2d3hChLuziBpczkel0XUNM/kkEn5zP7UjY3LH7iS0AizwR5Y/z+rzfE8c4A6fLggbcd E5U4q/y/iTkil5ow2/iaO1dH2we6ZGfLCTcgYebPh1zFWbN9HBv5WVlg3iOa3bgq6UVK fR2Q== 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=s9D3WbmpZIhPAoA5OTP2CN/BerUA/tPjAUMXT96fIHY=; fh=c3++oU7I8TqZscETCslxBC3RPbuVvOiGbgAteWHBfzU=; b=V7gspM1IvkLdBlkbNHjupwJTQXO+6Yw1z7LFSI0Sg9k+xXbCtaqGzBOVCn2t3H2h+4 GARl4MpJyZB0iAQvhuD99UjjFd6N/OvpmQMnWXw11x/EfszKz/6P8D6m1XaBAZPltDAv 7kv39I7biSMDZF/p+4xlCGg7s+2kpAqjFFdWFAKkxtxpLNbgDDWQgETZUPHdIpkFW9ZY PvsukFhJkHq8UFAFWgrazLnCGjDzjn9u9M6xqtkKAJkBVaw+Ne3Iw4b1u6T4ewj5UcAC QLm0Y/EsFXrV0RlzpmtyYgIrt5SIXo4sH0u4BgMZk9m8/hrlNGms6l9cishgm5BtApH/ Jsdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=k4fnJBKt; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q29-20020aa7983d000000b0069343bdd500si4795195pfl.319.2023.10.30.05.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:09:34 -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=@intel.com header.s=Intel header.b=k4fnJBKt; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 45393804BC1A; Mon, 30 Oct 2023 05:09:29 -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 S233342AbjJ3MIX (ORCPT + 99 others); Mon, 30 Oct 2023 08:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233219AbjJ3MHr (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 640E1E6; 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=Av6v/75XUvOo/4G6umamPviDmNrMM0DwE4OGzjWC1uc=; b=k4fnJBKtNIePQJeA5B/2CqcTwLYDx6fnF2rFE8BfDRW2T5wKLOTU3ROb 3OPF6a+0yiUCszxEIO2STx3GojvTXIniQ9O+hjlPoMbm0NB+iz+6iQsl6 5wcjFSvafoyaYOJRT8OMGaMl/W1x6KuxoXU0ReTzeQQ2UtRCFakHPtp/M HLbGUeuF7ztpZNbe8layZtOJZIAhIwHpriDR79oW/9Aa4LC1U+EF5hoju gcFsn74blSVC7g5Mdl74Y10aDusa48/Kpq4+USvm59FhiGEKu4sNdvgik 04sNq6jQmeX0BFzXLL1MBBhc3kluHsrce7BC8jZ07hixIVGOtrr13lO+B Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="6691310" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="6691310" 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="826036533" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="826036533" 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 6663E499; 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 12/17] pinctrl: lakefield: Switch to use Intel pin control PM ops Date: Mon, 30 Oct 2023 14:07:29 +0200 Message-Id: <20231030120734.2831419-13-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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:09:29 -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-lakefield.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-lakefield.c b/drivers/pinctrl/intel/pinctrl-lakefield.c index 0b94e11b78ac..adef85db82ca 100644 --- a/drivers/pinctrl/intel/pinctrl-lakefield.c +++ b/drivers/pinctrl/intel/pinctrl-lakefield.c @@ -9,6 +9,7 @@ #include #include #include +#include #include @@ -347,14 +348,12 @@ static const struct acpi_device_id lkf_pinctrl_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, lkf_pinctrl_acpi_match); -static INTEL_PINCTRL_PM_OPS(lkf_pinctrl_pm_ops); - static struct platform_driver lkf_pinctrl_driver = { .probe = intel_pinctrl_probe_by_hid, .driver = { .name = "lakefield-pinctrl", .acpi_match_table = lkf_pinctrl_acpi_match, - .pm = &lkf_pinctrl_pm_ops, + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), }, }; module_platform_driver(lkf_pinctrl_driver); -- 2.40.0.1.gaa8946217a0b