Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6554044imm; Mon, 27 Aug 2018 18:56:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZOivUbSJx5Fq41p2c2VJftly+Db85oVO2OsG7GyHci1ZlvpHcyShDEGeH8glxREqK9p5Yu X-Received: by 2002:a63:d70e:: with SMTP id d14-v6mr14512095pgg.110.1535421401238; Mon, 27 Aug 2018 18:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421401; cv=none; d=google.com; s=arc-20160816; b=ZVEJCACRlmWnFMoQsdZbogBV2A6KhG7QKCk9t23WnpJpcnNjd4IhGzRkyFgOBaZYU8 rcsiwTlHrzN+aqD5L3LbHX7BTShbu1L6X56bzRh0MFPi49DtU1wDEyTAiipvoCsiux6p pgvCn232IB1fXCuO5r4qm3qufUCr2kd96BVcAI4FZESEtpPxbT2T71JpjVMXw3Wg7C2W GUjdlQDALfNUpMV0l4UPVieMDxC8Xi14henPWkEx7HrF+kw15NcW3nNpnzTXJVGoQqjB Q4anxayMjYrlpEwMtZwEij1s75FuaY2uki0OWbB743rBxd7fSEwqdTdQm8ITbltypzfu wPzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=eL5vcN/OkhZA0ad2jG4pXcVqDaxn4Ca4HCS2cILLHhA=; b=W8sDe+JZbpzQBt6pXHALps16CoGqun/A0iguCW683JQsCh8qzBSxiYI4m8JT4z3wOI /+vQ0ZRuLy9rOFGveOQbsR8gh2GMbV5VhgnUMHQ3cVHaw+WwNJB5JVSK76TMrUbsTSc4 TGgWypCQSX55TKwKW2PmmvilMkgTk3wXf4Rl+3ZIrEm5PqdctsBMmA7VzVzOCr82YsXO 3+4A2YScpizCvF5ZWp5CtrKiAM0kJ0tzy5ELL8ZcKLpRyCYIdkIojRZKnq6mvbcf51g8 Vxn1MuCZkTNhOcykHiTrV7J+SnD9PuBJ2C/LYK392XFMxtA4s8OTQGzeC24ADj3G+tPC tWZg== 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 c2-v6si859841pgm.236.2018.08.27.18.56.26; Mon, 27 Aug 2018 18:56:41 -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 S1726979AbeH1FmK (ORCPT + 99 others); Tue, 28 Aug 2018 01:42:10 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:42622 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725724AbeH1FmK (ORCPT ); Tue, 28 Aug 2018 01:42:10 -0400 Received: by mail-oi0-f67.google.com with SMTP id q204-v6so1724331oig.9; Mon, 27 Aug 2018 18:52:54 -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:mime-version :content-transfer-encoding; bh=eL5vcN/OkhZA0ad2jG4pXcVqDaxn4Ca4HCS2cILLHhA=; b=OLFm14dXsZ2qHi01p+ODXmaWCDcZFOCkMAeEcQNGpUWXXe3qAM3GlNsQ8kTkLJLVbh UQ4VUj0tsl37jhEA8NTgqjLJsqqQQwAOaIwA3Ri79DWfb5n6qd5Cs93L4Bd3YIxsmRek EgwKVUfOlh/Yf0AGTYKSyluW3xSUtQmvn2uhJnzL/RuSJyi/RysocASSoE/GvakNqeca tVKUmjqaaFo99/jjb8ySI97n77HzUxv35KhDEDN2b6B3+70+tAWSZ+NVaCUC7osij0cE qMkUZA6gjimWd/SzwFIM4u/bFZ3AtDKLJI8OWevGW1pNwGUr3FTMwrx5UDx3hkmyFBiv lvbw== X-Gm-Message-State: APzg51BnOrWt31oJ67mPMH1DkwYNXkQkr3iq/9Yi3eAeUhZ3b8Fo+oSl ndTEPIi5X/9xQi2KUaa4Ebg841U= X-Received: by 2002:aca:3003:: with SMTP id w3-v6mr353956oiw.231.1535421174335; Mon, 27 Aug 2018 18:52:54 -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 n71-v6sm1652696oig.48.2018.08.27.18.52.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:52:53 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Paul Walmsley , Tony Lindgren , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: omap: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:02 -0500 Message-Id: <20180828015252.28511-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: "BenoƮt Cousson" Cc: Paul Walmsley Cc: Tony Lindgren Cc: linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring --- arch/arm/mach-omap2/omap_hwmod.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 2ceffd85dd3d..b5757646355a 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -738,7 +738,7 @@ static int __init _setup_clkctrl_provider(struct device_node *np) provider->size = size | 0xff; provider->node = np; - pr_debug("%s: %s: %x...%x [+%x]\n", __func__, np->parent->name, + pr_debug("%pOF: %s: %x...%x [+%x]\n", __func__, np->parent, provider->addr, provider->addr + provider->size, provider->offset); @@ -799,9 +799,9 @@ static struct clk *_lookup_clkctrl_clk(struct omap_hwmod *oh) clk = of_clk_get_from_provider(&clkspec); - pr_debug("%s: %s got %p (offset=%x, provider=%s)\n", + pr_debug("%s: %s got %p (offset=%x, provider=%pOFn)\n", __func__, oh->name, clk, clkspec.args[0], - provider->node->parent->name); + provider->node->parent); return clk; } @@ -2107,8 +2107,8 @@ static int of_dev_find_hwmod(struct device_node *np, if (res) continue; if (!strcmp(p, oh->name)) { - pr_debug("omap_hwmod: dt %s[%i] uses hwmod %s\n", - np->name, i, oh->name); + pr_debug("omap_hwmod: dt %pOFn[%i] uses hwmod %s\n", + np, i, oh->name); return i; } } @@ -2210,8 +2210,8 @@ int omap_hwmod_parse_module_range(struct omap_hwmod *oh, return -ENOENT; if (nr_addr != 1 || nr_size != 1) { - pr_err("%s: invalid range for %s->%s\n", __func__, - oh->name, np->name); + pr_err("%s: invalid range for %s->%pOFn\n", __func__, + oh->name, np); return -EINVAL; } @@ -2219,8 +2219,8 @@ int omap_hwmod_parse_module_range(struct omap_hwmod *oh, base = of_translate_address(np, ranges++); size = be32_to_cpup(ranges); - pr_debug("omap_hwmod: %s %s at 0x%llx size 0x%llx\n", - oh->name, np->name, base, size); + pr_debug("omap_hwmod: %s %pOFn at 0x%llx size 0x%llx\n", + oh->name, np, base, size); res->start = base; res->end = base + size - 1; @@ -2322,8 +2322,8 @@ static int __init _init(struct omap_hwmod *oh, void *data) if (r) pr_debug("omap_hwmod: %s missing dt data\n", oh->name); else if (np && index) - pr_warn("omap_hwmod: %s using broken dt data from %s\n", - oh->name, np->name); + pr_warn("omap_hwmod: %s using broken dt data from %pOFn\n", + oh->name, np); r = _init_mpu_rt_base(oh, NULL, index, np); if (r < 0) { -- 2.17.1