From patchwork Tue Jul 18 21:43:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 108212 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6482480qge; Tue, 18 Jul 2017 14:47:39 -0700 (PDT) X-Received: by 10.99.24.85 with SMTP id 21mr1173783pgy.108.1500414459836; Tue, 18 Jul 2017 14:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414459; cv=none; d=google.com; s=arc-20160816; b=AHnZpbtSYbRO53eyW1y/kg2tZPnyuyEwSBvYfnJM6re22PHUMqFUE6zI+LXItIm4OU cHagshc0B0ijCrkwcDcWgfDRENIofOimcUIJTZ1rsLNDQSet5gAlTfHaq6nXYXqRD8wX IPSBn3AQf9qfr6DvSs1cAAMyvnwt93KXdnHQtTAL3kDmLnUKp1q+pwIBEsD7P+6JIHwi 3RJxPqHKtoiq38sDV8aawJeSTecH9EKi3kUBU4nry+VcVTNK6Gu2JYqAx9qgamFV8pqG FshDquZwiwLeNTXXGqZR302g1w/2mj2w5MkDQR8P9+kHmxU6YxLzOZwX9fwr9xsOienh 6sXA== 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=PaDbnUEEjiwzQNIUEtDaOysTvVHkFNVv8Shla1ZM7tQ=; b=j6hFYVQbT5tCJ0Dl9wXdZPFIgTpqihEZ9mFthQUt9pkhuseIRXVZ6xHijyYrivwAzf wg7ZyNJlKYmRYSDAke3x8z7sGLAJqdAcmm6uwLuJf1mzXdykTHOvQDQK37HKjx5ALDyc JJZom6L9BzyE/TsJJpcJ0e+9et4AZQotoqymoutnyhoKVRDxRF7aJD0L/uAR4d9RxKrH Zse/oL3XoV8RDkoqkSduc6M6tRFMJoL36YpaR8fB6Gb3RBe0ZYDsbYRBi+1zxMFLjK/J yTkzmGSskg4J1o3y91MNX6d7ofo8KBZgJeuQQh5HJKfw9kxYrpCiaPWEpWmidzjUa03m unPg== 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 c71si2638603pga.312.2017.07.18.14.47.39; Tue, 18 Jul 2017 14:47:39 -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 S1753114AbdGRVrh (ORCPT + 25 others); Tue, 18 Jul 2017 17:47:37 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33852 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752962AbdGRVpJ (ORCPT ); Tue, 18 Jul 2017 17:45:09 -0400 Received: by mail-pg0-f67.google.com with SMTP id v190so4354866pgv.1; Tue, 18 Jul 2017 14:45:09 -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=PaDbnUEEjiwzQNIUEtDaOysTvVHkFNVv8Shla1ZM7tQ=; b=nlqxjRvG00OSEOKahdMksI6ORikgB/1OCUrq30V/5pa+Ub9OuezVnBFG/UdcQJNJiu oD/lhiWgmfQyOmm8n8SvAOmdvNZ7X9kwr/3vu7pPmpOaSO9zKF3lVU+Nh4tZGzsmyxPZ 9qdFw0Ylrvva0NgCD0U3Dk7k4n17btx0+R1FPj3Rw89TwDkVtVGvPL1p7W4DoyqKIWqV kBSKZwx1fq9W2d1aHhFhvMRQ9BJZd/Kt2Y3nX3JAA65M2ZUYkn31N+W+3/CoC+26Sf1o lrComljjU0hy3Et1VSHjj4CFY6BCgLRMIqmQqhRVKhNbaoOKRmxHMODIVRTa6DyJ/mvi kkfg== X-Gm-Message-State: AIVw110af+Ji4QXJg/+my7kgwShIrRvzFpe6L8KZ3HwTN7fh3dZED+aG WkMmy5LDCzVCMw== X-Received: by 10.99.124.5 with SMTP id x5mr3744631pgc.280.1500414309395; Tue, 18 Jul 2017 14:45:09 -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.45.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:45:08 -0700 (PDT) From: Rob Herring To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Stuart Yoder , Laurentiu Tudor , devel@driverdev.osuosl.org Subject: [PATCH] staging: fsl-mc: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:33 -0500 Message-Id: <20170718214339.7774-53-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: Stuart Yoder Cc: Laurentiu Tudor Cc: Greg Kroah-Hartman Cc: devel@driverdev.osuosl.org --- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 4 ++-- drivers/staging/fsl-mc/bus/fsl-mc-msi.c | 4 ++-- drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 8 +++----- 3 files changed, 7 insertions(+), 9 deletions(-) -- 2.11.0 diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 19606e8d25dd..409f2b9e70ff 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -757,8 +757,8 @@ static int fsl_mc_bus_probe(struct platform_device *pdev) error = of_address_to_resource(pdev->dev.of_node, 0, &res); if (error < 0) { dev_err(&pdev->dev, - "of_address_to_resource() failed for %s\n", - pdev->dev.of_node->full_name); + "of_address_to_resource() failed for %pOF\n", + pdev->dev.of_node); return error; } diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c index c04a2f2b3409..49f95123b5c7 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c @@ -183,8 +183,8 @@ int fsl_mc_find_msi_domain(struct device *mc_platform_dev, msi_domain = of_msi_get_domain(mc_platform_dev, mc_of_node, DOMAIN_BUS_FSL_MC_MSI); if (!msi_domain) { - pr_err("Unable to find fsl-mc MSI domain for %s\n", - mc_of_node->full_name); + pr_err("Unable to find fsl-mc MSI domain for %pOF\n", + mc_of_node); return -ENOENT; } diff --git a/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c b/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c index 865d38517508..e49dcde480fc 100644 --- a/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c +++ b/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c @@ -79,8 +79,7 @@ int __init its_fsl_mc_msi_init(void) parent = irq_find_matching_host(np, DOMAIN_BUS_NEXUS); if (!parent || !msi_get_domain_info(parent)) { - pr_err("%s: unable to locate ITS domain\n", - np->full_name); + pr_err("%pOF: unable to locate ITS domain\n", np); continue; } @@ -89,15 +88,14 @@ int __init its_fsl_mc_msi_init(void) &its_fsl_mc_msi_domain_info, parent); if (!mc_msi_domain) { - pr_err("%s: unable to create fsl-mc domain\n", - np->full_name); + pr_err("%pOF: unable to create fsl-mc domain\n", np); continue; } WARN_ON(mc_msi_domain->host_data != &its_fsl_mc_msi_domain_info); - pr_info("fsl-mc MSI: %s domain created\n", np->full_name); + pr_info("fsl-mc MSI: %pOF domain created\n", np); } return 0;