From patchwork Mon Oct 1 21:43:51 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: 147943 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4403652lji; Mon, 1 Oct 2018 14:44:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV618nNoBuxWI/qKkOtnlxJeqtWkCOdtv11qikPSclJ3g5lqrWosaxac6sVtZTYWc4LyW93Gq X-Received: by 2002:a63:fd58:: with SMTP id m24-v6mr12203554pgj.132.1538430244792; Mon, 01 Oct 2018 14:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538430244; cv=none; d=google.com; s=arc-20160816; b=ec8Dw9xSQikZed8Hk67D78dQRWqroxZ+oqp0TFwoGTT+WuNDPR1uYNC/1Z/jJvE+Jm CN3OdnxhsEIFjnQsI0/q22yQYt1yci3jJ3xMTVe4nX13cDnWadNsBUFNrs+nib5h8REy 4yGGHpbn1uy86MSassptpROVzSv0BAlVwsswv0+qaDQnqDNyGcXUyJuNWGq48MfY4fCF WWA2w8KPW2Eu4DjMAWaEaBGx+uNkQ07WgrXCGIpX+B8jq47Q/1N9SFRsb+nwCAhwqO+G +oARdB0sx7e8Fey7Hd/raBFW7+NqZnVJ8KVICtpO57WtRKEElyywNUqmYJFQ2Dev95vK 2P4Q== 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=izeOu+0ONa8a1oLSVbpVAkQ9ixGaZeWkki3gl1d8nyU=; b=kXtU38dnZsU3mDsMAwxShqGl1LjGDwFUx04wJVQzU8G4WhJ3jtDmOP4Rl/3RsELKAX nPFSaxwsIftq2QPLRc3NdmNWxrulFO2PT0F3dwrtdpD+5P5KiY5tt6GgtPbnNkew3GMZ MO10PZXBgqphfKbuimJQQbXirWgw2wNdgv3Rcn4BS6Vii3efA4oVhOosR7iDb+PphMYD AhjZCNIC6EEUJ6t1B3uslQ7A828x158yPR46oeTyiXjIk/Bvc+rnlU6o+JeRXxQomSmm heclcm9n6SqryOuXy4OnV75o3C60NqWL3oXCROyK+ZTec/ZsXx50u3zW4bX+opI4SbsI W1Ng== 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 i124-v6si13798614pfc.110.2018.10.01.14.44.04; Mon, 01 Oct 2018 14:44:04 -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 S1726565AbeJBEXv (ORCPT + 32 others); Tue, 2 Oct 2018 00:23:51 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:40385 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbeJBEXq (ORCPT ); Tue, 2 Oct 2018 00:23:46 -0400 Received: by mail-ot1-f65.google.com with SMTP id w67so5418730ota.7 for ; Mon, 01 Oct 2018 14:43:56 -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=izeOu+0ONa8a1oLSVbpVAkQ9ixGaZeWkki3gl1d8nyU=; b=Lr4SbMajKCAYWeqCEoR+F04S51C3dPR6pn8sbBtTtO9q+lY1WK2uRSB5hqoYGCqMxe pOZPB2Uh8cB8gbOeC9mIKK8eoRtHa0AFbS5fyHX7efu7ay+mPReutb7MtfmNYfE0Nu1o n4rN5ZRs8oWAUAhNkShZyvak6ZkdUpHKzLsZieBlFN/xONa24VWWpFzcROPN7bt77wlD Ja0lAnJrqIzdMRPq38LUK8vC8ppMq9AkK52DHd0YXFFzjKGSZ+bd2f9fsnyZFJ8Hst/W A18brbrOW8CV6ibDbNnihrI1jgEM7emqjkgR+nDMprP8XiqbVCxbfQND3BPrEqNkFH7g YWZQ== X-Gm-Message-State: ABuFfogoxZZFFJmQTsKSLEUbIbqtC+0hD+VztOWBlAO1c8eL6ASKYjc5 Fbin5e/abvu6G1vdRxrmyYkh6mOwIQ== X-Received: by 2002:a9d:6007:: with SMTP id h7-v6mr7241421otj.295.1538430235420; Mon, 01 Oct 2018 14:43:55 -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 h22-v6sm6401661otd.21.2018.10.01.14.43.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 14:43:54 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman Subject: [PATCH] uio: Convert a few more users to using %pOFn instead of device_node.name Date: Mon, 1 Oct 2018 16:43:51 -0500 Message-Id: <20181001214351.13230-4-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181001214351.13230-1-robh@kernel.org> References: <20181001214351.13230-1-robh@kernel.org> 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: Greg Kroah-Hartman Signed-off-by: Rob Herring --- drivers/uio/uio_dmem_genirq.c | 3 ++- drivers/uio/uio_pdrv_genirq.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c index e1134a4d97f3..003badaef5f3 100644 --- a/drivers/uio/uio_dmem_genirq.c +++ b/drivers/uio/uio_dmem_genirq.c @@ -163,7 +163,8 @@ static int uio_dmem_genirq_probe(struct platform_device *pdev) dev_err(&pdev->dev, "unable to kmalloc\n"); goto bad2; } - uioinfo->name = pdev->dev.of_node->name; + uioinfo->name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOFn", + pdev->dev.of_node); uioinfo->version = "devicetree"; /* Multiple IRQs are not supported */ diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c index f598ecddc8a7..6c759934bff3 100644 --- a/drivers/uio/uio_pdrv_genirq.c +++ b/drivers/uio/uio_pdrv_genirq.c @@ -118,7 +118,8 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev) dev_err(&pdev->dev, "unable to kmalloc\n"); return -ENOMEM; } - uioinfo->name = pdev->dev.of_node->name; + uioinfo->name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOFn", + pdev->dev.of_node); uioinfo->version = "devicetree"; /* Multiple IRQs are not supported */ }