From patchwork Tue Jul 18 21:42:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 108186 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6479233qge; Tue, 18 Jul 2017 14:43:55 -0700 (PDT) X-Received: by 10.99.150.2 with SMTP id c2mr3734480pge.166.1500414235633; Tue, 18 Jul 2017 14:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414235; cv=none; d=google.com; s=arc-20160816; b=E6SGVJ33Pf2RWZcHA2SaNkfA00GLY7MFxvechr5wcxJDBuPXBhNi7t0qUWCjX6YNDk v9Xwp622nCeflJ4AniEKSueUc2N1Y6A9klmJvizcgzfgTyhX0URIzwE8a8KRtviNShCb lobOPHWJ05FdymfVRMR23EIgGq7z9YZWNzhijBM4SeimDdMNcWYXDVWPvcNPvQZY+7k9 Z43jRIfqNosGDzEmz1kOuok48vO4B55U3LBmwhqtdo/p6IK5PGwvhTsP5bqKs5Ul73Yb p3K0Xd7cacCzNeiu5EPmIuNB1p9N8ocBoR50xU5K1+3v4DPtOhfRAMjyfJfm1xMjeY9Q nulQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wmHJMVF4SrLlHVt1lIMEWvDn8MExDc0nrj+F3I8W4TM=; b=gE6Rrws+Ie2Pi8Bc4yT4hxQ0MMe4bfMVFMocsuqctL3lIR+gRwsjRnDGAa0APo47MR kPryHjfJuz1aS6oMzuU4Yft7xTUznC34FM39qnGxHEDs//JSObbLCpTc4wZHpFquNKLp Wn9pJ8bBBAeIXeJCzTc6/I+rOFLBMTdLdsjhHDyTehgmTwUW6LOrU3PK5JjxKU26aTpf HmZPaJXrHOINF0JIndGUYVJYHajf9Tg+724gDBP4P2YEAxT4QRkv4pobp8ASdwm5ZRSj k2XYPyrB0bEUKr0SNv4WPMpR66corEID7RB57x00/XU/qU673vL05YrH1S3ajSq8qNcn J7LQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si2590684pfj.160.2017.07.18.14.43.55; Tue, 18 Jul 2017 14:43:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbdGRVnw (ORCPT + 25 others); Tue, 18 Jul 2017 17:43:52 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36071 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752218AbdGRVnt (ORCPT ); Tue, 18 Jul 2017 17:43:49 -0400 Received: by mail-pg0-f68.google.com with SMTP id y129so4333755pgy.3; Tue, 18 Jul 2017 14:43:48 -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; bh=wmHJMVF4SrLlHVt1lIMEWvDn8MExDc0nrj+F3I8W4TM=; b=O3fSppMZ7Q19VUV3qVTUcfx0DT0zJGxZUZz6FQpQe2hPCApq/mKVflujVC09yuH4yc U7t/JRh1jT8wlFTK4KmTYIBJypj0OwGYvYNIFsMUjHG+aVlDnyO71c52E9GtNU6WSOOK iUc7LHRjyjxU6HIGnCFsj7Wb6k+tT3O7uwee9gj7H1jpKORS+Jrn7MyQPkZwZ080MRBh +e9H3WUx/QJgOfyrTn9mTr39qBKmLJ/rtqsbAK5OOwinqRywv26Geen2YjmuP6ClTX1J wyaXi7u3SjTWFpTVMUr08faENQjk9SkSA9oMcuuEdBtKsAIw1g+Igv0m2JzaMTeiqi03 TBIQ== X-Gm-Message-State: AIVw113Xa98BwMg5P3l94w16q2jaxA8p+kT3WVaHbRzkGlrt3BwnRPTh ASH+ZUqnHN8sS/yc/gI= X-Received: by 10.98.208.198 with SMTP id p189mr3954541pfg.10.1500414228314; Tue, 18 Jul 2017 14:43:48 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.43.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:43:47 -0700 (PDT) From: Rob Herring To: Mark Salter , Aurelien Jacquiot Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-c6x-dev@linux-c6x.org Subject: [PATCH] c6x: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:42:43 -0500 Message-Id: <20170718214339.7774-3-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-dev@linux-c6x.org --- arch/c6x/platforms/megamod-pic.c | 22 +++++++++++----------- arch/c6x/platforms/plldata.c | 4 ++-- arch/c6x/platforms/timer64.c | 8 ++++---- 3 files changed, 17 insertions(+), 17 deletions(-) -- 2.11.0 diff --git a/arch/c6x/platforms/megamod-pic.c b/arch/c6x/platforms/megamod-pic.c index 43afc03e4125..9519fa5f97d0 100644 --- a/arch/c6x/platforms/megamod-pic.c +++ b/arch/c6x/platforms/megamod-pic.c @@ -208,14 +208,14 @@ static struct megamod_pic * __init init_megamod_pic(struct device_node *np) pic = kzalloc(sizeof(struct megamod_pic), GFP_KERNEL); if (!pic) { - pr_err("%s: Could not alloc PIC structure.\n", np->full_name); + pr_err("%pOF: Could not alloc PIC structure.\n", np); return NULL; } pic->irqhost = irq_domain_add_linear(np, NR_COMBINERS * 32, &megamod_domain_ops, pic); if (!pic->irqhost) { - pr_err("%s: Could not alloc host.\n", np->full_name); + pr_err("%pOF: Could not alloc host.\n", np); goto error_free; } @@ -225,7 +225,7 @@ static struct megamod_pic * __init init_megamod_pic(struct device_node *np) pic->regs = of_iomap(np, 0); if (!pic->regs) { - pr_err("%s: Could not map registers.\n", np->full_name); + pr_err("%pOF: Could not map registers.\n", np); goto error_free; } @@ -253,8 +253,8 @@ static struct megamod_pic * __init init_megamod_pic(struct device_node *np) irq_data = irq_get_irq_data(irq); if (!irq_data) { - pr_err("%s: combiner-%d no irq_data for virq %d!\n", - np->full_name, i, irq); + pr_err("%pOF: combiner-%d no irq_data for virq %d!\n", + np, i, irq); continue; } @@ -265,16 +265,16 @@ static struct megamod_pic * __init init_megamod_pic(struct device_node *np) * of the core priority interrupts (4 - 15). */ if (hwirq < 4 || hwirq >= NR_PRIORITY_IRQS) { - pr_err("%s: combiner-%d core irq %ld out of range!\n", - np->full_name, i, hwirq); + pr_err("%pOF: combiner-%d core irq %ld out of range!\n", + np, i, hwirq); continue; } /* record the mapping */ mapping[hwirq - 4] = i; - pr_debug("%s: combiner-%d cascading to hwirq %ld\n", - np->full_name, i, hwirq); + pr_debug("%pOF: combiner-%d cascading to hwirq %ld\n", + np, i, hwirq); cascade_data[i].pic = pic; cascade_data[i].index = i; @@ -290,8 +290,8 @@ static struct megamod_pic * __init init_megamod_pic(struct device_node *np) /* Finally, set up the MUX registers */ for (i = 0; i < NR_MUX_OUTPUTS; i++) { if (mapping[i] != IRQ_UNMAPPED) { - pr_debug("%s: setting mux %d to priority %d\n", - np->full_name, mapping[i], i + 4); + pr_debug("%pOF: setting mux %d to priority %d\n", + np, mapping[i], i + 4); set_megamod_mux(pic, mapping[i], i); } } diff --git a/arch/c6x/platforms/plldata.c b/arch/c6x/platforms/plldata.c index 755359eb6286..e8b6cc6a7b5a 100644 --- a/arch/c6x/platforms/plldata.c +++ b/arch/c6x/platforms/plldata.c @@ -436,8 +436,8 @@ void __init c64x_setup_clocks(void) err = of_property_read_u32(node, "clock-frequency", &val); if (err || val == 0) { - pr_err("%s: no clock-frequency found! Using %dMHz\n", - node->full_name, (int)val / 1000000); + pr_err("%pOF: no clock-frequency found! Using %dMHz\n", + node, (int)val / 1000000); val = 25000000; } clkin1.rate = val; diff --git a/arch/c6x/platforms/timer64.c b/arch/c6x/platforms/timer64.c index 0bd0452ded80..241a9a607193 100644 --- a/arch/c6x/platforms/timer64.c +++ b/arch/c6x/platforms/timer64.c @@ -204,14 +204,14 @@ void __init timer64_init(void) timer = of_iomap(np, 0); if (!timer) { - pr_debug("%s: Cannot map timer registers.\n", np->full_name); + pr_debug("%pOF: Cannot map timer registers.\n", np); goto out; } - pr_debug("%s: Timer registers=%p.\n", np->full_name, timer); + pr_debug("%pOF: Timer registers=%p.\n", np, timer); cd->irq = irq_of_parse_and_map(np, 0); if (cd->irq == NO_IRQ) { - pr_debug("%s: Cannot find interrupt.\n", np->full_name); + pr_debug("%pOF: Cannot find interrupt.\n", np); iounmap(timer); goto out; } @@ -229,7 +229,7 @@ void __init timer64_init(void) dscr_set_devstate(timer64_devstate_id, DSCR_DEVSTATE_ENABLED); } - pr_debug("%s: Timer irq=%d.\n", np->full_name, cd->irq); + pr_debug("%pOF: Timer irq=%d.\n", np, cd->irq); clockevents_calc_mult_shift(cd, c6x_core_freq / TIMER_DIVISOR, 5);