From patchwork Tue Jul 18 21:43:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 108227 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6489414qge; Tue, 18 Jul 2017 14:56:07 -0700 (PDT) X-Received: by 10.84.129.71 with SMTP id 65mr3923712plb.183.1500414967405; Tue, 18 Jul 2017 14:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414967; cv=none; d=google.com; s=arc-20160816; b=NW41gOzHFMyGfNUB7ojOzmkUiOVfuh1TWaa9nbIi2UeTiv+8kFckuDBc63m1ixydHF H84/W4Mobe6NIeRirDQd6FvC+dZwmlWqApqIEFzBJtdnxq8KEmfWdlVsJMq8qCZmWcPN uY3hP3+RwdxgUf+di3gDBX881BWlI8w6COQR9IAJAcgsBIHtZ0LkVFzHcMJPkRa3okJW s0NMBuRdYBUIXODMggZ3EPfVXe2076/9pBPaesd0+0LEoHju6HqQG8ilJ+j9EtcPMbWR rttps8uF634G3R5UX+ZfILqorkBDJ1L+HxLfkaGYG/BDHpQ5jNbW413QXyf4xwZJEu5i +LNw== 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=CW0WoH5FMgQ78+RKdB9apYqyILhbtSH3dG5qZAeRChI=; b=Z7hYKCTbKH45SUrAp6yzPV7araTGcFVVPfLSrERfqVRiHB4flqs1a4+ZB61GB84tji jbSZ/jlsQ+3M/4aAk5srDi6+VZhwt50Pu5+Nre2izUP5WCa5IaN4RDiejHlsmV/w8V0b P3hRVumDoXsKLpS7f+SVMDbHLDGyQzeMznEOq/aKLvm2m3/dMllI3tgGbLpNCtU8A1O5 jFMmDErIe85QT2dGUe6Zb5JMqN2Tr+p7cX97PpVyQITADFKtkasNvKM3jOC3OQ+Fw+2A 7aeMscQzOe8+7RQlAuzcgkDOwlFCPxxibUQB5DgbAej+e1+R8ZQf7p8ov9XH0TzhQzyn LAbw== 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 1si2603076pgp.88.2017.07.18.14.56.06; Tue, 18 Jul 2017 14:56:07 -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 S1752911AbdGRV4E (ORCPT + 25 others); Tue, 18 Jul 2017 17:56:04 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:32947 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752714AbdGRVo1 (ORCPT ); Tue, 18 Jul 2017 17:44:27 -0400 Received: by mail-pg0-f66.google.com with SMTP id z1so4352537pgs.0; Tue, 18 Jul 2017 14:44:26 -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=CW0WoH5FMgQ78+RKdB9apYqyILhbtSH3dG5qZAeRChI=; b=K9f0QlL2+PAxSrd6rgpsqdVfiyQOYEvRy9QR/4Drvqe9J40FL8uE2X3IMCFWIZjCzP XZnBPch3+f8zyir8EF27RdO7QzQZ2IbpFQI+vfDfKXARm7t4P+x+G8giTsRwWluaBMK5 eJpWneptFefPlPyg1QGRr+1UeSpjHmxgaNGb3jvsAGISBbeGrGi7k+OXPRDYzspyu89Y BdKiLvSOOzZUsvVrklU+ScYuHaN47Zealy7BqPiXY6UfNhM9XwuMnMq+e6R7lcU7FC+0 AO/7Hbi6nmacxcLW1PjGOyGCmKfSQ9gzn7wMCW4BQmXSlLDwWqYV5ee8tkxrX4uF62K3 NprQ== X-Gm-Message-State: AIVw1134k0JWN1g7T2F1dOt9PBrC/ZpfCrfvbsDcF4NBGYLpNeho3Gfb VEVlYEnLBMYAWw== X-Received: by 10.99.132.195 with SMTP id k186mr3730136pgd.127.1500414266594; Tue, 18 Jul 2017 14:44:26 -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.44.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:25 -0700 (PDT) From: Rob Herring To: "David S. Miller" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-ide@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] ide: pmac: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:07 -0500 Message-Id: <20170718214339.7774-27-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: "David S. Miller" Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linux-ide@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org --- drivers/ide/pmac.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.11.0 Acked-by: David S. Miller diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c index 0c5d3a99468e..c5b902b86b44 100644 --- a/drivers/ide/pmac.c +++ b/drivers/ide/pmac.c @@ -1145,8 +1145,8 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev, return -ENOMEM; if (macio_resource_count(mdev) == 0) { - printk(KERN_WARNING "ide-pmac: no address for %s\n", - mdev->ofdev.dev.of_node->full_name); + printk(KERN_WARNING "ide-pmac: no address for %pOF\n", + mdev->ofdev.dev.of_node); rc = -ENXIO; goto out_free_pmif; } @@ -1154,7 +1154,7 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev, /* Request memory resource for IO ports */ if (macio_request_resource(mdev, 0, "ide-pmac (ports)")) { printk(KERN_ERR "ide-pmac: can't request MMIO resource for " - "%s!\n", mdev->ofdev.dev.of_node->full_name); + "%pOF!\n", mdev->ofdev.dev.of_node); rc = -EBUSY; goto out_free_pmif; } @@ -1165,8 +1165,8 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev, * where that happens though... */ if (macio_irq_count(mdev) == 0) { - printk(KERN_WARNING "ide-pmac: no intrs for device %s, using " - "13\n", mdev->ofdev.dev.of_node->full_name); + printk(KERN_WARNING "ide-pmac: no intrs for device %pOF, using " + "13\n", mdev->ofdev.dev.of_node); irq = irq_create_mapping(NULL, 13); } else irq = macio_irq(mdev, 0); @@ -1183,8 +1183,8 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev, if (macio_resource_count(mdev) >= 2) { if (macio_request_resource(mdev, 1, "ide-pmac (dma)")) printk(KERN_WARNING "ide-pmac: can't request DMA " - "resource for %s!\n", - mdev->ofdev.dev.of_node->full_name); + "resource for %pOF!\n", + mdev->ofdev.dev.of_node); else pmif->dma_regs = ioremap(macio_resource_start(mdev, 1), 0x1000); } else @@ -1274,7 +1274,7 @@ static int pmac_ide_pci_attach(struct pci_dev *pdev, if (pci_enable_device(pdev)) { printk(KERN_WARNING "ide-pmac: Can't enable PCI device for " - "%s\n", np->full_name); + "%pOF\n", np); rc = -ENXIO; goto out_free_pmif; } @@ -1282,7 +1282,7 @@ static int pmac_ide_pci_attach(struct pci_dev *pdev, if (pci_request_regions(pdev, "Kauai ATA")) { printk(KERN_ERR "ide-pmac: Cannot obtain PCI resources for " - "%s\n", np->full_name); + "%pOF\n", np); rc = -ENXIO; goto out_free_pmif; }