From patchwork Wed Sep 5 19:37:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 146031 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5340353ljw; Wed, 5 Sep 2018 12:38:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYdg1ythIF97nRH/cZlRmICt2WgVKd1PYudyNbeBetgqtwl7jlt+8a6ZIp2UjmhyfYia7r1 X-Received: by 2002:a63:7d48:: with SMTP id m8-v6mr38722814pgn.0.1536176282362; Wed, 05 Sep 2018 12:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176282; cv=none; d=google.com; s=arc-20160816; b=m1OBN6fxkmoFrVJAXwrOPCMj0s3Cgm5h85qGXEuXoZGzwog2grXXQHi9mFqnxk5Y5X xe60RnXRPwz7380NSh4dWOjoKzga2e+nuvPudQvEUFdxYufTfYRZTY5hPbXLSDZNr62z JJuxCXNnCLojFGQgjmhr882uQRJ7Zhuo49QyLbo50/rd3CRtCnGldVUGAvMiDEBEC7N+ 3hR+koQ6Lunvezxmt7CQnSn6QhqwNW818QkPZCgZkfKC1SBW4mP8SNIKw4cXjOnqQOp4 Nxh5no/hOOJXh3l0UOmN/Urzpn61pZc1NocE99rXsSQHKYtuRJjwIak8J3ofnSWzm8R8 3reg== 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=esRW4epyy+tbCOE/OOJYFszu2Y4geAOJ7tPyxf0XQ90=; b=YxuOT1qo5akMnubigeW0Iu2LC5AgERY3XE8zj6zMN/OXh3UHv2mUHuG6wV5bF3xLKN 6PtYHtFghhIvVTDozu8Qu9anFeHYMKCSKsXB9erTFwg67HDcIqaXHxbJY3mI9HiQKBcJ 4TguAj4jisrN621iZDQCMFAU8hhXnWpmH8RFuskB4wqcrqDY76NPogHHCVv+azwAM4Fz oPFPXyvQ8gAMvFrcjYSihHMqehyTImghX32Zkw/NFF/E8flTPFzELjY1HjdN/9P6xNG9 qUYDY+FUc252rhU9yWkLUBr1stJsloTeHmfuZQTdc5Uqad5IQHtrD6D1YmwocEQr/wSO Q5Rw== 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 cd2-v6si3020882plb.47.2018.09.05.12.38.01; Wed, 05 Sep 2018 12:38:02 -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 S1728203AbeIFAJh (ORCPT + 32 others); Wed, 5 Sep 2018 20:09:37 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:38189 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728161AbeIFAJg (ORCPT ); Wed, 5 Sep 2018 20:09:36 -0400 Received: by mail-oi0-f68.google.com with SMTP id x197-v6so15933406oix.5; Wed, 05 Sep 2018 12:37:58 -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=esRW4epyy+tbCOE/OOJYFszu2Y4geAOJ7tPyxf0XQ90=; b=UdtoerTgkdQIQj7B6Q9rQUVXEKionMBVczHwOdmxNxmTkUfjb+oPrSpoaFTpgyKJO1 HwgpRInQdbjKUWtSwFfyErjZ7f1SzM9uxs2jBkhaM1NziImdDGfL+DRrJxAzQ9CIGVkv 5pSpPMq73kWIXaLH4AeXMzX8+8ok+Qf0XJ37HC8tSD4a39VkVf7XKthY9QQPDGGPsFjm dnCLK/SOQVGVErUaImnfzUsYnLwQLNAE4VJqth4i/BzG0rKGURaTJuLtazNB5SkbmZ8m zkBSGNuIx0ZJGbt9f0bxsq0HYV38HdkSG5Zr2sDNnfD2kIA8Kf5uwgv+nCiRiiH3iEGd TlGg== X-Gm-Message-State: APzg51CaNQKs/7u5ffXYXeR5G0d9w7qxrf8Lbq2fJqhWuCsk5UZwudLA 6Aozt3fNcPOKNl3Ur79nXRiZpoM= X-Received: by 2002:aca:4aca:: with SMTP id x193-v6mr7630941oia.211.1536176277944; Wed, 05 Sep 2018 12:37:57 -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.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:37:57 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org Subject: [PATCH 15/21] SH: use for_each_of_cpu_node iterator Date: Wed, 5 Sep 2018 14:37:32 -0500 Message-Id: <20180905193738.19325-16-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 Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This has the side effect of defaulting to iterating using "cpu" node names in preference to the deprecated (for FDT) device_type == "cpu". Cc: Yoshinori Sato Cc: Rich Felker Cc: linux-sh@vger.kernel.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/sh/boards/of-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index 26789ad28193..cde370cad4ae 100644 --- a/arch/sh/boards/of-generic.c +++ b/arch/sh/boards/of-generic.c @@ -64,7 +64,7 @@ static void sh_of_smp_probe(void) init_cpu_possible(cpumask_of(0)); - for_each_node_by_type(np, "cpu") { + for_each_of_cpu_node(np) { const __be32 *cell = of_get_property(np, "reg", NULL); u64 id = -1; if (cell) id = of_read_number(cell, of_n_addr_cells(np));