Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp415017imc; Sun, 10 Mar 2019 09:27:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3snpGzVd9taYWFHWFI7UnLVuvGEfyce+AObuGU8MNBENH8Xe5eKLr/G6++ZxgCfghr//9 X-Received: by 2002:aa7:8186:: with SMTP id g6mr29024418pfi.138.1552235221526; Sun, 10 Mar 2019 09:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552235221; cv=none; d=google.com; s=arc-20160816; b=Rz1DKsdybGkmpL3xkPAdX7UCAU1YFkUTZgSmp5QYmPkyWI1k64oDsot9RK0ST+5eZf Wtxnss/PQpXrBhZ4RAdcXQzFADTo9x5A616/sgB30LNBlSXK7ejfMLQeV/lrmcpOJ7SJ HIwIuAXWvrhIHJCY+fisWU3WpDQ0ZaWYo1QG3woKq408izs6jEgAEcUinTlG1U5+Vcd4 8bLeLAEK4cLIeLM4IxaTti6RuqZ3alraWJjjFQXYICPFLwm/PeJn3JgIGzylRF9+VyaI Gs/tmmXPd2fMzrm4Nhlv+dsmmI/+SMdXINJTTJc3ttutz2Rfwo3MFdhesdwEsYXrt+D2 04bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mQRzTnqlob+gb7nWOZmyiXaPxZK4/VQYcrYtvSQ695I=; b=El3sESYYzaMYitp9AeyY1UDRXbPDCFbiM6A/pOuXEwFCM+tdbmy2dJP/Jd8cXuY7z6 gUHDi7ikJXvQC0thfx2HDWbEb9I4f6qK4UETrmuu2k1FRC/kf0lR2lL3hvk3d0Pdwjx/ ZVl1UC9tHHh9Cu60xSl6ejSKOYc1Jlw0EnUvIF9TUdynHM7amlEk4MZ+u2gYhZOvNmJG 2QmWxYGZXP2+qT9IyC2D7w7KalXk0kcQnAnFzAhQZDr7kkzPBLQGEEdq2V8sgh4c2e5C b0+YDjor7WH61E4+QF16jQB4skE2Zox9IDZpIlBbX2egwQbLl9oSg+77r3AiAdiHAS4G u0cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19si3245481plq.148.2019.03.10.09.26.46; Sun, 10 Mar 2019 09:27:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726805AbfCJQZb (ORCPT + 99 others); Sun, 10 Mar 2019 12:25:31 -0400 Received: from shell.v3.sk ([90.176.6.54]:45117 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726624AbfCJQYw (ORCPT ); Sun, 10 Mar 2019 12:24:52 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 299C4102CBC; Sun, 10 Mar 2019 17:24:49 +0100 (CET) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id LCNIdONVJ2GI; Sun, 10 Mar 2019 17:24:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id A4B0C102CBF; Sun, 10 Mar 2019 17:24:32 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FzwLq9Ysp5Wc; Sun, 10 Mar 2019 17:24:29 +0100 (CET) Received: from nedofet.lan (ip-89-102-31-34.net.upcbroadband.cz [89.102.31.34]) by zimbra.v3.sk (Postfix) with ESMTPSA id 2B042102CAD; Sun, 10 Mar 2019 17:24:29 +0100 (CET) From: Lubomir Rintel To: Sebastian Reichel Cc: Darren Hart , Rob Herring , Mark Rutland , x86@kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lubomir Rintel Subject: [PATCH 03/10] x86, olpc: Trivial code move in DT fixup Date: Sun, 10 Mar 2019 17:24:12 +0100 Message-Id: <20190310162419.11861-4-lkundrak@v3.sk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190310162419.11861-1-lkundrak@v3.sk> References: <20190310162419.11861-1-lkundrak@v3.sk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This makes the following patch more concise. Signed-off-by: Lubomir Rintel --- Changes since v5: - This patch was split off from "x86, olpc: Use a correct version when making up a battery node" arch/x86/platform/olpc/olpc_dt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/platform/olpc/olpc_dt.c b/arch/x86/platform/olpc/ol= pc_dt.c index b69c50cb9742..adf98b5623c0 100644 --- a/arch/x86/platform/olpc/olpc_dt.c +++ b/arch/x86/platform/olpc/olpc_dt.c @@ -238,11 +238,6 @@ void __init olpc_dt_fixup(void) =20 pr_info("PROM DT: Old firmware detected, applying fixes\n"); =20 - /* Add olpc,xo1-battery compatible marker to battery node */ - olpc_dt_interpret("\" /battery@0\" find-device"); - olpc_dt_interpret(" \" olpc,xo1-battery\" +compatible"); - olpc_dt_interpret("device-end"); - board_rev =3D olpc_dt_get_board_revision(); if (!board_rev) return; @@ -268,6 +263,11 @@ void __init olpc_dt_fixup(void) olpc_dt_interpret(" \" olpc,xo1-rtc\" +compatible"); olpc_dt_interpret("device-end"); } + + /* Add olpc,xo1-battery compatible marker to battery node */ + olpc_dt_interpret("\" /battery@0\" find-device"); + olpc_dt_interpret(" \" olpc,xo1-battery\" +compatible"); + olpc_dt_interpret("device-end"); } =20 void __init olpc_dt_build_devicetree(void) --=20 2.20.1