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 (Arm)" X-Patchwork-Id: 10589341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 30960175A for ; Wed, 5 Sep 2018 19:38:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E9352AA07 for ; Wed, 5 Sep 2018 19:38:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1032F2AA0E; Wed, 5 Sep 2018 19:38:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6FD92AA07 for ; Wed, 5 Sep 2018 19:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728183AbeIFAJg (ORCPT ); Wed, 5 Sep 2018 20:09:36 -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-Google-Smtp-Source: ANB0Vda3uGGmtCm9niLbNULBjEc3hEpAog7xnev4aH0NQzINrAjb2fW7zml31F8m4eRs7vQoibsm0w== 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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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));