Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp338342lqp; Mon, 10 Jun 2024 06:00:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUD+6u8XO1BQAmm9ZfG3szJNSX36LVsjOqYaMc6xlRx5DmczA7lRpnWxHUPwa8C35FruD40e6juRJKe6jdVoL++cLkj8ELAbTP7XNRhw== X-Google-Smtp-Source: AGHT+IEkC+jAmJnUFwGnz8ujvtGPh+QZ4eFzMPZcTEEvDDJiDahPSEqwWGzcXhRlnpa6EMfTWw56 X-Received: by 2002:a05:620a:1909:b0:795:59dc:232d with SMTP id af79cd13be357-79559dc2cc7mr667047785a.37.1718024409428; Mon, 10 Jun 2024 06:00:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718024408; cv=pass; d=google.com; s=arc-20160816; b=0ECdJ/b3EnIi6Waym6B7quDI/yzM66NtAuYBrFTYrn3b/2dgaTUC+QJ/L2TVEmiA1+ 6lER3mpfZNXKGYuGX+P1n9z7Ss3k8iGF9weneNva6JG2elPvwXfiutiRfJ5nOz3CPQw5 xh5FxgHoErI7+a0/vlE0lcICiNsSjZqsw0c4mV5tNEX9IduwHQKfFecWaUBTLrh7RzZg 9CQubpRTcchZ8En0q2fl7/nW9D9n8Ih2+SIhJ1hmU5UZMQ/rTGK6ta+ooWknjCgGfBaW UaRQjcbcEVvwXcqW94kSmQQiWWWauxZkQUulYBrFsYL8pAUnsOhQgQLzkAhszdO1zmOh GSrQ== 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=UUkIu/8Qmux6+/va5NpKSfNIFMGEqp8ObO5jfrobR38=; fh=KHDILYIIids9bwGxiWXKgpJrjYL9nh6c7FM/vrL56QM=; b=xRjofjeamjs/Hx+itrg/rkWH0EkQAGTUZ/B7j8cctT1pCs/Cc+8ThYhb7HQZP1CjPV gZOU75B7wztve813Tu0Z+OSZsMeBmCuF34MIi/UFGQqMxzJ6BvtiUna0S+wVbI2Pmjoh 3nYiZ+JOatEYFvTmMYFQ+qgJjb2mrwlYrzOKjG85WaIaIWwLh+2A04xAnDQfzOpPBUEc AncKjtdd2V/vBO9TNayLlONS7qTZQj/ruSL+f0ezwTruVSg1JU6bw5JzZ9MPf1PeFCWZ kR+DHvar8DHwBdOOuffHoTWduzxGPvl9zh7wCdZz3qaqK3qDZKWrB3rsFnNOvnhiwREz w9fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MfYKvQU+; 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-208198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b3d23csi104743421cf.435.2024.06.10.06.00.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 06:00:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MfYKvQU+; 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-208198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208198-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8C7EA1C21B73 for ; Mon, 10 Jun 2024 13:00:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EE8181AB1; Mon, 10 Jun 2024 13:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="MfYKvQU+" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 467CF7FBA1 for ; Mon, 10 Jun 2024 12:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024399; cv=none; b=udJsUBTObPbCAu3jbgqBcUTjTz0OjEigNEmnNG9HpHpWiKEJuvA4I0+UGnKOx3KTR4rtVQN1lafebiqTh2XD+74YldHRNGV4C9ECGdL23WQGRXtFGV6f6ui0a9gvy88jEGyynZt7NVXLPPzmjPdXSi8YxMsR6l8iz9G854M7OXg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024399; c=relaxed/simple; bh=bM81m61bwS2UN2Svbu/r1zfl/LDb+tjGoL6u8SEWQWE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jbqb5eG1geV4Q8GQejib0JEiQ+A4ZAYrCvLuep24Ol8dlj6OXDgDhV4R8GzO99bxjXQCzCurolaqvLhNS2xqSwLhUPMugVsHSz4e88QBXRWiHQpyNXIsGkQvZy6UwljLZ7/R2siHfYwYIqgWlLtBVmTOblWSY6Sn2pZ/OWdA8ag= 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=MfYKvQU+; arc=none smtp.client-ip=198.47.19.141 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 fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45ACxTM1010160; Mon, 10 Jun 2024 07:59:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718024369; bh=UUkIu/8Qmux6+/va5NpKSfNIFMGEqp8ObO5jfrobR38=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MfYKvQU+50NmBlRsRK4gnQkcG5nLX5QmL/9ANDT46GgQ5P2B6QM33aAG7+UcEXmPf cCXdm48FU7OoXMqI0CVkfcEmQvc4rl+bFGG0qK9sp/t7ziEEmdrnYlH4CU6n456fV3 7uUsaHeKyLfpkQaYGy+IuxVVFo9ftDvHo32cVrfo= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45ACxTd7040422 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 07:59:29 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE115.ent.ti.com (10.64.6.36) 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:29 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE111.ent.ti.com (10.64.6.32) 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:29 -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 45ACxP7Z064068; Mon, 10 Jun 2024 07:59:28 -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 6/6] ARM: vt8500: Switch to new sys-off handler API Date: Mon, 10 Jun 2024 07:59:24 -0500 Message-ID: <20240610125924.86003-6-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-vt8500/vt8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-vt8500/vt8500.c b/arch/arm/mach-vt8500/vt8500.c index 0ab40087ae1cc..1d294255d7083 100644 --- a/arch/arm/mach-vt8500/vt8500.c +++ b/arch/arm/mach-vt8500/vt8500.c @@ -141,7 +141,7 @@ static void __init vt8500_init(void) pr_err("%s:ioremap(power_off) failed\n", __func__); } if (pmc_base) - pm_power_off = &vt8500_power_off; + register_platform_power_off(vt8500_power_off); else pr_err("%s: PMC Hibernation register could not be remapped, not enabling power off!\n", __func__); } -- 2.39.2