Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp213864rdg; Tue, 10 Oct 2023 08:17:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3NPRe6K8+vNqaoSeB6FgmMWe1Id0epRXZYuyf+pJGRN4jAKO+78GDpTvzlDgXRbBUNFAw X-Received: by 2002:a05:6358:784:b0:13a:4855:d885 with SMTP id n4-20020a056358078400b0013a4855d885mr20511294rwj.10.1696951058245; Tue, 10 Oct 2023 08:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696951058; cv=none; d=google.com; s=arc-20160816; b=Y8Un3jHK3nOGqTERoged6BBsIE+bOpOjp9A2zbIGIGUiUB/qb/3rCisfOYj6TY466T INxkOj/SIqHhOUXBK+0hsMVfPExPEvOzL91uwkoPhmWgW/ltG6we1kEN8MnBHfHtYEGd x/RazbvuwIA4wCgcP/0wyb8PQFV4Xibx/KgxXSlvRewwkMzEJ0ePs5bR/ZPr6GJZrg5d pG4IEr3v2JvqypgKrmJk9VezcjXlc9XxCpdP4tP4EZOZsohEdJQnbcACSdRhgeWqzIGy BuXS37P7QShp+i7aqjEFoifEAG6AuZkSR/uDXP38qY/bfl8sd8c9XluJ+lMSMflv3+Xt cPWA== 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=qLovOSMQCMNriOppPoSFCXk+WVTACTIUEZgc+4hbwfM=; fh=Pmv/3wCd/vMMkz6ztZZNrSYr82TrxG1l8ka93ZTHWP8=; b=yP155+AynUk3CqZsLDGFi6ebzsGVlh5j4m+Bjkcu3hmCfCVZmZE+NeFtE4PbX1Vugl p7xrbmCsMkFuB1XuNnf05qp3dElk2qH6v/IwZKNplF8T1hxQOiBQMexthJkRx/YV4di1 jrXLjqabeCgu/V76exepb32/EBbeFU/4hnZNMxpX2UB3+H6LUjLbkR1nxRkeRzu6JFNj +ompCrk6Ln1nV4rtrbAKFaNlDCX0ayiTqKYm10i7s+OlCGu+5IbTnrG5QQRtZyNl9MXM oXkWSJtOr/urPC6VzH71XbG9FYpufUJfnbMakCDe2+6V9W1EEoEf6QeLx/qEAl1JOk7W bZXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LsU22sFT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g67-20020a636b46000000b0058933a74376si11717787pgc.70.2023.10.10.08.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 08:17:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LsU22sFT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 7702680D755B; Tue, 10 Oct 2023 08:17:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232740AbjJJPRR (ORCPT + 99 others); Tue, 10 Oct 2023 11:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232667AbjJJPRQ (ORCPT ); Tue, 10 Oct 2023 11:17:16 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F780B0; Tue, 10 Oct 2023 08:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696951035; x=1728487035; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b+eQ/uwdz+URzIJFW2ABqaZbfeJbxTuJSgGGfs7US3E=; b=LsU22sFTfH8FUie4sWiAbw/3z91MMYKZPy5IxgvFFZLr4QYBFQNrdViS VOC7a0gTtM6F33qpsnY17vr0oZPBte9ig6DnKrdLighZTSLvKT3Z/UR4D 9ucQdg09FGp3mjMGSbDKdErP61Ld4RRR0yZbvRJ3bDKzObfuC91/vTzTJ 2a6Vc/946DuDI3oBAEB+138JSzq2jpr1rTSRwaW8uCUbXQDRDyOiZzn5t gtiGdq0peMJmLvXhcE5HY8sHxjUSpQ9h3OD/9c1eiylrSs3FzdX3SByND uoDGIKhpMg3YT7Tgi/uMFE/nPrrlVt9vlTpE5gHpFsoD5uG06JCDwS034 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="363771580" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="363771580" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 08:17:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="823812775" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="823812775" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 10 Oct 2023 08:17:11 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 524C671B; Tue, 10 Oct 2023 18:17:10 +0300 (EEST) From: Andy Shevchenko To: Bartosz Golaszewski , Andy Shevchenko , Dipen Patel , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, timestamp@lists.linux.dev, linux-tegra@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Thierry Reding , Jonathan Hunter Subject: [PATCH v1 4/4] hte: tegra194: Switch to LATE_SIMPLE_DEV_PM_OPS() Date: Tue, 10 Oct 2023 18:17:09 +0300 Message-Id: <20231010151709.4104747-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20231010151709.4104747-1-andriy.shevchenko@linux.intel.com> References: <20231010151709.4104747-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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: 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]); Tue, 10 Oct 2023 08:17:31 -0700 (PDT) X-Spam-Level: ** SET_LATE_SYSTEM_SLEEP_PM_OPS is deprecated, replace it with LATE_SYSTEM_SLEEP_PM_OPS() and use pm_sleep_ptr() for setting the driver's pm routines. We can now remove the __maybe_unused qualifier in the suspend and resume functions. Signed-off-by: Andy Shevchenko --- drivers/hte/hte-tegra194.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c index 30ef1750a9fa..30fa7c0a555e 100644 --- a/drivers/hte/hte-tegra194.c +++ b/drivers/hte/hte-tegra194.c @@ -815,7 +815,7 @@ static int tegra_hte_probe(struct platform_device *pdev) return 0; } -static int __maybe_unused tegra_hte_resume_early(struct device *dev) +static int tegra_hte_resume_early(struct device *dev) { u32 i; struct tegra_hte_soc *gs = dev_get_drvdata(dev); @@ -836,7 +836,7 @@ static int __maybe_unused tegra_hte_resume_early(struct device *dev) return 0; } -static int __maybe_unused tegra_hte_suspend_late(struct device *dev) +static int tegra_hte_suspend_late(struct device *dev) { u32 i; struct tegra_hte_soc *gs = dev_get_drvdata(dev); @@ -856,15 +856,14 @@ static int __maybe_unused tegra_hte_suspend_late(struct device *dev) } static const struct dev_pm_ops tegra_hte_pm = { - SET_LATE_SYSTEM_SLEEP_PM_OPS(tegra_hte_suspend_late, - tegra_hte_resume_early) + LATE_SYSTEM_SLEEP_PM_OPS(tegra_hte_suspend_late, tegra_hte_resume_early) }; static struct platform_driver tegra_hte_driver = { .probe = tegra_hte_probe, .driver = { .name = "tegra_hte", - .pm = &tegra_hte_pm, + .pm = pm_slee_ptr(&tegra_hte_pm), .of_match_table = tegra_hte_of_match, }, }; -- 2.40.0.1.gaa8946217a0b