Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp532imm; Wed, 5 Sep 2018 12:40:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYb98ttJp7BaEmESPDG5H2Ze9nxHzmrdq7hNKAdYKtXjdGwDdmAerccGgqM9Xa25IHQhYeB X-Received: by 2002:a17:902:7c96:: with SMTP id y22-v6mr36000748pll.332.1536176426983; Wed, 05 Sep 2018 12:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176426; cv=none; d=google.com; s=arc-20160816; b=YQ9wgjBGJHcTYaL3NKKadzp4WVlH+pJgZIUk6MbToaPqu/kkVm7CikNEo60stGP/d8 blG3QKWHl2WMqaWkjI7ZlEfbH6xzD6sdcde5F0aJaiaEDMnPSMPmCVmaKYwO408kBOFr h6yOH1TDOteMXIQXbs999rJrbSPfJwSWOTQ46Qt5cbxzq8f1GMrGdlkbe2ZWH0Vb05eE 9wGX/jjmXCJr4mNSToaN3FeDmWQq4A6UE9GDar+klwcVX42+WHIEOKMQasnpvUyNG39r GvGS5cYvjYCkCPNPNCHI+rEJO1IAU5mDMXslD+i+DfZ7xU+qmUujKaGrGViJplIruje6 k9Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=s3OlCcnQtVwqjPItkwhGyBmzTtRlvMcJ/T8eD1Ua590=; b=icU2RVboS4vpZOJwdvJeDXN2vIDr34cHBofz8VRMiorUfv70oeZS+BDDzdvzNl7Yqi aB73JerItjxdGGcOPXlroRCPPwh/3ORyJw/DmGRGJgf+UodKQcQGn6DZtDQHbWRrHXMS 96aOniNO+SXUJpMm1LCD5o/9ojmXi0pBhF5qj6B5uUIW3+8dYbU+S9ye3G67H3RHsej1 mGoqhxkm0Z4pBybj+f4M1JmTIv6CK4FRQp+Bsx3zIQS/BZv01t7OuhOxsoZsAzUQu30y Y/OH0VGSAah33wZB6dIapMLWi/NV5i4dHZu3WcKVlxflYVT3Dy/kYW8lAm5NNX+519PR jnRg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si2689751plh.312.2018.09.05.12.40.11; Wed, 05 Sep 2018 12:40:26 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728159AbeIFAJe (ORCPT + 99 others); Wed, 5 Sep 2018 20:09:34 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:41629 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728113AbeIFAJd (ORCPT ); Wed, 5 Sep 2018 20:09:33 -0400 Received: by mail-oi0-f68.google.com with SMTP id k12-v6so15893041oiw.8; Wed, 05 Sep 2018 12:37:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=s3OlCcnQtVwqjPItkwhGyBmzTtRlvMcJ/T8eD1Ua590=; b=Vhte3upClIY0I+g+ED9LAaJ8FeZbmh61jvcNlg7hoH5BZN04W72KhOf/CIjzI3YgGW CQmXXuoTMhbo5J6laaHElA/HRuxcWsm1SGJ1DJN9kT+hFExgdDqlwW19wD2A4vBVw9u5 h3+t4F4J96+jT2YUYHA0M8Kc1CO9OF+Lc4oMNYmpoyvYApf/x+t8Se+Cp5j73UmivDBu +uGsUIddHnDUERHov6KPJe1tYJE+5/wP7wPeW8PwpY0fcTeZo+dt5p0MbjHIkVUWDWcy I5CpPZYN0adA9sRcnH67uOul4NiAa4V6fAQtTg+r0Mq60Dj0E69MSQtKBZKUwdl7OciE S9Fg== X-Gm-Message-State: APzg51Abbz2qtyEMVJNBpTAHkazaskc/vVx3Xd5CuRnl9Lre69/TCGAJ WNKRfugO/mfSWEicGrBqyuEOimE= X-Received: by 2002:a54:4091:: with SMTP id i17-v6mr19205119oii.352.1536176274820; Wed, 05 Sep 2018 12:37:54 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u21-v6sm2296053oie.22.2018.09.05.12.37.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:37:52 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 12/21] powerpc: 4xx: get cpu node with of_get_cpu_node Date: Wed, 5 Sep 2018 14:37:29 -0500 Message-Id: <20180905193738.19325-13-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905193738.19325-1-robh@kernel.org> References: <20180905193738.19325-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "device_type" use is deprecated for FDT though it has continued to be used for nodes like cpu nodes. Use of_get_cpu_node() instead which works using node names by default. This will allow the eventually removal of cpu device_type properties. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. arch/powerpc/platforms/4xx/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/4xx/soc.c b/arch/powerpc/platforms/4xx/soc.c index 5e36508b2a70..1844bf502fcf 100644 --- a/arch/powerpc/platforms/4xx/soc.c +++ b/arch/powerpc/platforms/4xx/soc.c @@ -200,7 +200,7 @@ void ppc4xx_reset_system(char *cmd) u32 reset_type = DBCR0_RST_SYSTEM; const u32 *prop; - np = of_find_node_by_type(NULL, "cpu"); + np = of_get_cpu_node(0, NULL); if (np) { prop = of_get_property(np, "reset-type", NULL); -- 2.17.1