Received: by 2002:ac0:adb2:0:0:0:0:0 with SMTP id o47-v6csp11563imb; Wed, 5 Sep 2018 12:39:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbVEAlamAjvURGWdqVaHpcaSHyXedNgssIAMYvr0GyGRD+fOSQ9w2SYXwkZ4uzHdBN6DnYK X-Received: by 2002:a62:1391:: with SMTP id 17-v6mr41798819pft.34.1536176373550; Wed, 05 Sep 2018 12:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176373; cv=none; d=google.com; s=arc-20160816; b=XFx0t5pgsBDpWfYidXuHkT0JlqlKrNinGBVoKOcyjp2uqQ48JOroW05ZV/lpJDhlph VMKEkybY5xQONQwLNFoPBggk8+4xG6Kx94RnlEK2hpcPRndIjipl3CUKUsl1nsVKHR1g JytMQFLT6cMmWCdYCBpTNc8lJbyVxN2u/4qAF1ZuxHza3hk4g9hCMNTGuQId+RVb+Srf 3doGslNHA4v8Y43mbgND88BERwBnPpRKq7l1qtNzg0DZWLKruGTEWPyKnMXvdiyXfIB4 nWzuJsnlEcrqaHWEAvD1Jd5Ynyfvo4WQghJXonna1GrooBJxf7OZjfQKYRgUjcEngxmJ g9QA== 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 d30-v6si2833412pla.200.2018.09.05.12.39.18; Wed, 05 Sep 2018 12:39:33 -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 S1728198AbeIFAJh (ORCPT + 99 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(-) 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)); -- 2.17.1