Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp343880lqp; Mon, 10 Jun 2024 06:06:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV73EFr/wP1rdti5z/RniHEFTGTQ8YybOjnnPUWUo6CilmBxWkQ77vxTLVKPe3RhHy/gUv5RN0UUZXpBbV59rDSoejyJzygAumQlY9SLA== X-Google-Smtp-Source: AGHT+IHNgu/eZZQ69aifcCUHKQiJLR3N/CfpOVmAd0fmqxN0+4UavCKIPzZEW1msYMMa43YYtcju X-Received: by 2002:a17:902:e542:b0:1f6:751b:f0d with SMTP id d9443c01a7336-1f6d02e47a4mr110459405ad.22.1718024788802; Mon, 10 Jun 2024 06:06:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718024788; cv=pass; d=google.com; s=arc-20160816; b=sonueR45ZcyfWQtm8snCtIaB6lU+WKwDmVifW69U76zbe3OxR4Llj3hsI63in8m+fl HTYzqrtlkayCQ5L8aPWcNOt+z3FM2SP2UD2hXFwwl883Gt4v3pmi/VdhmAcJlHDIz11Y ngtQG4VtYsBxUZApfkZBZnOJoZYfahFWhg7IFUMq7H2r4m1jMzKuxu8GM4hZTZcgxctx MDbNRJDRc029DAPsqt5zf8sx5ZtnmiytvX6X1XrqQ47qvwS+OyKzVjIgI0DHRWLcriCu ZA+Jr0a49GrpFl0BCawUF1ZRYFbdUST0SUyJascPvjkAfozmsaqLH7efhaFBVAHWfIXU 0pPA== 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=8gIz69rx+O7g3l2dUBVUwaQsvlZ4QBJNSMujzHzSCeo=; fh=KHDILYIIids9bwGxiWXKgpJrjYL9nh6c7FM/vrL56QM=; b=d0VLrSGoPoO3/thux3Mi4rRp03MwdyrhTE1eJ5keZBm6qeEeO/iu3x9P/lqruutwp5 uyA6RsvYsvgnOIHljGXl5c6YtsmNs2z5ANKm09D2Gx7fjC6gNffVp3M/tgHXyb1hXxth 4iyAcSGWINsSpLZpXr4/qlsbBbOAaZ0Xu0gIy/WWepBgaZ7uVpO49dhQhIr3VGlqMu9g 5L6wztcUeGzlEakaM2+d29a6VuvTl/lFr7rCLUkhLtowGJzftwwsaUIaAIlr52MtiXqR woXXhGAnAUyFXJqpM7bFOOKHeS20KTIl14YTzDdVk8siyo94fqO9jNEJyU/E3OqWZMQ5 Ri2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GRLBaRP6; 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-208201-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208201-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 d9443c01a7336-1f70707d23bsi25943305ad.214.2024.06.10.06.06.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 06:06:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208201-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=GRLBaRP6; 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-208201-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208201-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 B38B9B231D5 for ; Mon, 10 Jun 2024 13:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E27D824BC; 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="GRLBaRP6" 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 66BAB811E7 for ; Mon, 10 Jun 2024 12:59:59 +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=bItNZ6SIa11Zbe6vKfOmywqLpncLnqwM8tzXOibfcorfVS8mXM7v8NDkaGnyzpD0GvyojeE2wbm4hvwEa683idXqrNmstJzAnNgLW6UNAajsqb7C2EqDIJudSpV497gFNrcgS0FfjvB4We4s2KhpJpQCPrJ2KAf8+8eDuxtSSoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024400; c=relaxed/simple; bh=F1JZZ3VxwsSKTg2LjGq0rUIE/gVME8qmJ40fxossfJc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lt37U7bM+xqT+HdSjNFjb4a8TvFurFBBtEDtkF2q4hrYM4XPj0SB22irWB+FfPzS/XFq7XfmuEzx6GOodwWkxwwTddmL3tiIjmyz1gvgU9v5Y6eQEIBRSLtBuf1hQ71xVwtfxzb4pKsgaQp1YMls+z/4VngVtLb9uFBvHDoE5gI= 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=GRLBaRP6; 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 lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45ACxSmP084565; 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=8gIz69rx+O7g3l2dUBVUwaQsvlZ4QBJNSMujzHzSCeo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GRLBaRP65WwnjhYCtISTrW+kC+NKAPkUL+eQLYD++9N2cGGoaEzqxem9pHDsf8J2b OinK0WLmgriYAeYB8temohiKRQe9tOJVJBJ6cmlauzK9NhFhOEJM6lB6elajF+fltQ w6RjyU0VyrV5DOd6NGVvaYcGn3cQbXvc2bIVNHA0= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45ACxSHT047336 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 07:59:28 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE109.ent.ti.com (10.64.6.30) 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:28 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE107.ent.ti.com (10.64.6.28) 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:28 -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 45ACxP7Y064068; 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 5/6] ARM: sa1100: Switch to new sys-off handler API Date: Mon, 10 Jun 2024 07:59:23 -0500 Message-ID: <20240610125924.86003-5-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-sa1100/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c index 0c586047d130f..5383a26f51169 100644 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c @@ -298,7 +298,7 @@ static struct platform_device *sa11x0_devices[] __initdata = { static int __init sa1100_init(void) { struct resource wdt_res = DEFINE_RES_MEM(0x90000000, 0x20); - pm_power_off = sa1100_power_off; + register_platform_power_off(sa1100_power_off); regulator_has_full_constraints(); -- 2.39.2