From patchwork Wed Sep 5 19:37:34 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: 146032 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5340385ljw; Wed, 5 Sep 2018 12:38:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY/9n4rBfcD7Lc/reoadO13gcWcLUzOcAxVdOyvHY3Ye/p62WZs14tHz2pqlj+PySxMFZ+a X-Received: by 2002:a62:8c8c:: with SMTP id m134-v6mr42098043pfd.130.1536176283909; Wed, 05 Sep 2018 12:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176283; cv=none; d=google.com; s=arc-20160816; b=DBvrtIVWXJw/K6l9PXY6JikUJIgS4ehT/9AD+9PAhryqtpjdZW0nx/WKgr8oMwndKV DXCIhBtfz/b51tkta39LVPqMQ9tvtY7aojQOr2NgbqKBjR09bz0w8j0lubhi1ondQLRg 4W/Zl9MnMBmN9dBK8rFqNDmeGu4W+N9upQiyYW17KciJQavNuSmcr+M21ew/FzAXO/2J gWCD9pDlEkTGfLkVk8sq64j8DCd2z0FeXiZBg4y9oXTNTTA3o/2l40sAFI9t+/wPsLsu Ofwnehi+yjK6CWlujP6rms1oybyTWQcmvVYSmsp0gYpQ9C6MuoziCFpfYWHoD3/AZPc6 ANLg== 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=GgCElFhdjQyThXth4aH8s7Qmwk29mwNME1dnAGCxWmw=; b=hIcdthoMSqY0/OsDkOB1mwjAYgpj3/swXfbqpFyJUczqZOdKzdA46njtq+j26j6Hxl v4fPoWHiLOi87pBnQendVZ3BBTUYoOx4BAgy7Eq6QdLzwYIPYwG3Pc+AVracwPEX758D hsNAwjyTD7SMdbrAsx4WJpv3qYmFY5oabpdgnVO1WnyChcFB4/PccCYXKGbUeK6rE55T nmNaG7FanTygSzVxopKFK9ee5jMwfmhdo1deJoX2U97R29vTmDaMxhkLa84F7rPIHKS0 wAtGbQmSOKpyFC0LncLe4vLSz7m61yAn6wc00NhnpEvKafuTOR4rkJCIcZQwXs0UtATE 02WQ== 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.03; Wed, 05 Sep 2018 12:38:03 -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 S1728224AbeIFAJj (ORCPT + 32 others); Wed, 5 Sep 2018 20:09:39 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:44632 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728161AbeIFAJi (ORCPT ); Wed, 5 Sep 2018 20:09:38 -0400 Received: by mail-oi0-f65.google.com with SMTP id l82-v6so15896617oih.11; Wed, 05 Sep 2018 12:38:00 -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=GgCElFhdjQyThXth4aH8s7Qmwk29mwNME1dnAGCxWmw=; b=HgVs64jow0hvpvmgicYmIMzRHhtfR74JrySKD05KW4MZXxN1URHw9cdLyWlfpn+95j QYOj1XRpz8FDEzjAew+sayRTJRpLkPMrU6oRuvn9t9U057yR0b8U2VkG5GJtTGmG8Lzr 5R1JSLDPks6P1CDU+GibzdzS6JB5s9Nv8wHqBIVscA6mMH9n8Xi6/JFuzQSpevuK4htX U7xZeG/jxEBnH5ApJw2A+y3/K5u/yZyD3wCgvVBXZIops4qWb29krwN+kngiIBmfZgXx R7q6W/lez939kRMWQPKj9dM7y5F5IahfLsE80QmXA9LALd5+6cbAEeEt9yjt5iaYWl2j aP+Q== X-Gm-Message-State: APzg51Af6OvC9+Dg9Qa9I+5E/wEiDB6qSVmjp4uNxv4wXOfNm9hTewzI 8hMlrue7xK2QedoQXlEA8G9TFVc= X-Received: by 2002:aca:3507:: with SMTP id c7-v6mr34041839oia.46.1536176279859; Wed, 05 Sep 2018 12:37:59 -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.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:37:59 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH 17/21] clk: mvebu: use for_each_of_cpu_node iterator Date: Wed, 5 Sep 2018 14:37:34 -0500 Message-Id: <20180905193738.19325-18-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: Michael Turquette Cc: Stephen Boyd Cc: linux-clk@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. drivers/clk/mvebu/clk-cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c index 072aa38374ce..3045067448fb 100644 --- a/drivers/clk/mvebu/clk-cpu.c +++ b/drivers/clk/mvebu/clk-cpu.c @@ -183,7 +183,7 @@ static void __init of_cpu_clk_setup(struct device_node *node) pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n", __func__); - for_each_node_by_type(dn, "cpu") + for_each_of_cpu_node(dn) ncpus++; cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL); @@ -194,7 +194,7 @@ static void __init of_cpu_clk_setup(struct device_node *node) if (WARN_ON(!clks)) goto clks_out; - for_each_node_by_type(dn, "cpu") { + for_each_of_cpu_node(dn) { struct clk_init_data init; struct clk *clk; char *clk_name = kzalloc(5, GFP_KERNEL);