Message ID | 20180905193738.19325-13-robh@kernel.org |
---|---|
State | Accepted |
Commit | 84dbc69a2ff308f2dedf03c82dbbe194b6df88b2 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5340300ljw; Wed, 5 Sep 2018 12:37:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYWKGktObHwkZZO9mwHyHFk3xfoZFLfFDUcpSRYEqDLtD6z35pe0kY8Xr/u36j9oOT2HsKn X-Received: by 2002:a63:550b:: with SMTP id j11-v6mr37260516pgb.167.1536176279310; Wed, 05 Sep 2018 12:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176279; cv=none; d=google.com; s=arc-20160816; b=oipikqievPc0QKrIce1Yr53JCX4mHVH8Tfv6klJkKe6RN5uxvCHsky5SHGXTZowFmT 3dGjXNKuEovgZ+mZqLG1P04MmiaV57lCqe740K0u+GBTTRUd+zKBgt2RPeo2N55QzgO7 oWlLpKn188Ar1kabpTJTZ2d5nhg7m8mE14HeCcMivxXbhE6wkxyGfLb7CXbriqkLwrng ee8pZLftbPQLlQ3oel/CBRr27641Tf+tpEMPG95I1fkmBKJ8Is0TkzcMOKuKsUt24A4J rdqFw7st8I4FrFNKq1fAuxWvzq5a5+593fHAg4Yti9dtuwrnZngAlfIK/xbfwceljouq l6kQ== 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66-v6si2830384pfk.268.2018.09.05.12.37.58; Wed, 05 Sep 2018 12:37:59 -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 S1728164AbeIFAJe (ORCPT <rfc822;igor.opaniuk@linaro.org> + 32 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <robh@kernel.org> To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Michael Ellerman <mpe@ellerman.id.au>, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
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);
"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 <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring <robh@kernel.org> --- 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(-) -- 2.17.1