Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp343784lqp; Mon, 10 Jun 2024 06:06:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMQS5oQ/uIhASHD3J1sLHkURMkjltd6LJH/mP+WcKjcRPh+cytMSm4wxS8T5CchiSsOp1LuadT9rczt053eHGK1bB358OMKawHRQ1dpQ== X-Google-Smtp-Source: AGHT+IGBBfeOXJ0uQlecJQW2WRS1wRtrWc4xOHGSiSuf9kswRBs2fhRJWZ3u9HnJevYHHP1aWMoN X-Received: by 2002:a05:6a20:7483:b0:1b7:bdb3:7bc6 with SMTP id adf61e73a8af0-1b7bdb384b2mr2512658637.45.1718024781567; Mon, 10 Jun 2024 06:06:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718024781; cv=pass; d=google.com; s=arc-20160816; b=LqGkZsLr1rXL+IafsVNhlUtw4ytORBosYoBGbX8vrK8Ki38cFzOskD7IZ2p6hGLIDk i1hY/Ek+bogp+OlwUnjAwoAltg/PvjrXEvXNwV89oEcR0otYmhPwupkvPAHoBZinzvcq PywEET5B+7P5+wUbUc85q+P1+CHUFweEk0RS2d+zSr83p1KN5Mh534tP+YVFCmBYL4ne 1qRve66lkXXnhffu39RLtXlNsXlBf8GDejfalegKnUqmXIfxYNgf+W5tGnn+KyvgcjvN tgiVrtI+U+f/asexZNzEYWhjFI8ak5afGLBAatySOfISIoq7BDw2H6cK+aPDj8RlvwbM Kfxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yXBs03WeRona3MGkbGkbcoT3PwhsZF7P//oppQ9IszM=; fh=KHDILYIIids9bwGxiWXKgpJrjYL9nh6c7FM/vrL56QM=; b=wWIruLRi8J9c7nJCtksGPZPGIZb5HxCDzdObrmNM9FHE7pk0fpdK0u5AvILIMFl7Pa f5OdSh3uHk7i+FVyEbCFvPstDkpZU9f0KtyABX+bviamIQFKIsCUOezxVa7id0OiubUn srT4OW98QLZOtZsL+GpthgTyqec3gS/IUjnxIe4whqqu06GnOHIxrQpyJjq43Y958Evg 6G7Wq56neCtlmf0nD/g9Bm+QycOHfYIvKZxn21OBlo50kUPcXy1VaBeGDJPamtWAxOax z4DVt+jMrXsS0CwDGtNnrkxav4KGSr/+ZsIWn0A1x9HSBAa7W4jIThkn4dXuUHb4wdfQ S6Og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cTdrmp6+; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-208200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208200-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e6c48b96b0si4346637a12.807.2024.06.10.06.06.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 06:06:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cTdrmp6+; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-208200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208200-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E3361B22438 for ; Mon, 10 Jun 2024 13:00:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4560482495; Mon, 10 Jun 2024 13:00:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="cTdrmp6+" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 116A6811E6 for ; Mon, 10 Jun 2024 12:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024400; cv=none; b=JR4G5gDEBWLaa/2TkxEyfF21xn5EzLqMObtpa1/PJGnp+kn0VOt8XJ6XRgeM09KAWLdiHg/UNPMYxe95EAPlaCW90jtxvxwCsXMQ8o/QsvDVJsxhMh6aoBezVZsomckn4V+nYyGJofzHYWFWS35zmwD/Iq249TeBPX9kxNGiDw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024400; c=relaxed/simple; bh=8Ci/OsnahK/bBn7zwhrIhXwgOme4UJ/921P5K9y7fGI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FnxQFibf5W9dnWZvsnu4JmQ1yXMGxdCHcNmbe8IvLwYV7hh2ir6H1+mDI11niH4J13pY7aFgryw4WaPnhCFgRcN5u5YIwu0kTZM1RwRokDbOS+sJMUiyGVoJzB7yYXHAJu3/biXeM+8vd4A5UwjlAtjP+nfv5obdNVyvOfjjh7g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=cTdrmp6+; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45ACxS6P084557; Mon, 10 Jun 2024 07:59:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718024368; bh=yXBs03WeRona3MGkbGkbcoT3PwhsZF7P//oppQ9IszM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cTdrmp6+1gKFEZzXHK/h0UKZj/PF+QjG8LiEvXeNokZDXCnQAuWIx0rudW7DvR2TR +84jPQIP5cZ69u3tMCvVjolFGc3NYwswZtlYxtdwx3yVw2BR/KE4e8RJeRkaA8M9U+ Hp8xGG6vTcuCAk6Q0osBQC4OHGSPAKbDt/HNzLZc= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45ACxSsL040412 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 07:59:28 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 07:59:27 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 10 Jun 2024 07:59:27 -0500 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45ACxP7X064068; Mon, 10 Jun 2024 07:59:27 -0500 From: Andrew Davis To: Andre Przywara , Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Daniel Mack , Haojian Zhuang , Robert Jarzmik CC: , , , Andrew Davis Subject: [PATCH 4/6] ARM: pxa: Switch to new sys-off handler API Date: Mon, 10 Jun 2024 07:59:22 -0500 Message-ID: <20240610125924.86003-4-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240610125924.86003-1-afd@ti.com> References: <20240610125924.86003-1-afd@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Kernel now supports chained power-off handlers. Use register_platform_power_off() that registers a platform level power-off handler. Legacy pm_power_off() will be removed once all drivers and archs are converted to the new sys-off API. Signed-off-by: Andrew Davis --- arch/arm/mach-pxa/spitz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 3c5f5a3cb480c..e444d7e8aefa0 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c @@ -1021,7 +1021,7 @@ static void spitz_restart(enum reboot_mode mode, const char *cmd) static void __init spitz_init(void) { init_gpio_reset(SPITZ_GPIO_ON_RESET, 1, 0); - pm_power_off = spitz_poweroff; + register_platform_power_off(spitz_poweroff); PMCR = 0x00; -- 2.39.2