Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6554728imm; Mon, 27 Aug 2018 18:57:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbM+yGvsUce49FE4/gK7p9UH0VHRqNSzX6RrHW/W8pRQ8ylVZ0rbRIMVZFX1n15LeU9U4WU X-Received: by 2002:a17:902:d808:: with SMTP id a8-v6mr15429676plz.68.1535421466923; Mon, 27 Aug 2018 18:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421466; cv=none; d=google.com; s=arc-20160816; b=KzLIFbOCscIc9NbBZBaEe57nD2OhbPiNHUA4CCqFP/L0zYU4VzIhB0E9GW6fta/eou OEdh332hheMKjXXDFM6NyB1L1CmOMTvpLDZmw/XkSbcW10K7jUSBQUAwL9aWQBNu7wQ0 6JXxH6mpwZvhwh3aoIdTboa+oxJF/CeWRKfDFVpHDu27wkTj52DrY3OamhJLNcEZbrKZ W+0fhO/LCkTddFCyhTRkolnHDFGIf81J0mXKJ8824J5mbqUQzmkOYNVPieExRvgHAD14 mgRR11yLgVG+43jZTtvAM77oxsNafq16aOUsqTfNAgFE8QkRYP2fHidMeAbxzm5LRss8 S24w== 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:arc-authentication-results; bh=BjSv54kYqZQm8xIY+2ze5d49wD7KR5gbWBlvsmgOD/8=; b=I6HzCaxvr915/s82wFiSGzv0Jp3O5sl8nex8/aF8gcfw9LXC0ayHiZ9C4ptbtRG6zK WumuCDwzutA8t8jyaZ+T92FCPJ6lDK9bJxJLMfe1KwuBLJYBNp+X+AxDMallcoyM6+Rm tcuWfBR/n4usRbNoMczqed+6+uTISOEUm/kuSwUGlYh+Z8mgOecW69FcsfUFGkarzM08 UxkLkvmPm8bt4iLNKOaE+eDaeBC9kIHmhCeMrRd5cbjw3wcm6e71d4PMUW+1QFRwF+GO SUEFJ0KleAtPToOj0zMLJ5bsiIb4pMGY6Yy8gLt4AwnJVPGq07Ppvs2gcvjFNKNpC887 J2lw== 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 k29-v6si961390pgf.227.2018.08.27.18.57.31; Mon, 27 Aug 2018 18:57:46 -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 S1727530AbeH1FpB (ORCPT + 99 others); Tue, 28 Aug 2018 01:45:01 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:40606 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727484AbeH1Fob (ORCPT ); Tue, 28 Aug 2018 01:44:31 -0400 Received: by mail-oi0-f65.google.com with SMTP id l202-v6so9008oig.7 for ; Mon, 27 Aug 2018 18:55:16 -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=BjSv54kYqZQm8xIY+2ze5d49wD7KR5gbWBlvsmgOD/8=; b=gsAWBJfo6rlFpbOyXSGn1OlkSgfs/24re/8RO4NYzoGf3dshOTAzqs6j0vLz6sNKIR wBasEF9QgsVNRU/oO5WtIJgsFpxTjiR5voIbFoTk+977J1PjWO8P+6mSqQFP2qY2ajuA aXA+6962tD29FDT3mDtxF+/QCJ2n7XPAkVGWYgjYRjjydNtCrcQ8BiVK2ZSRpTD3Pov+ ENSsI2U+DR16zoiFXJEl4Skf786y4elEWNVqS/y+kihcBX75eUuqHmSnk2ceDAckDjeM WXhY5UMNQwPkzKxTUqhWv9ds7c3awXMDO3BijUCB+qEO6siwZkJxmkVDVAaZczgzvwF4 5M5A== X-Gm-Message-State: APzg51BTMYTeuTNUjbhw/xrbXCj2ren7MzYIvWXL1eHNGMplKct2j6Sm QNUxU61T2EisZUF6f1x9LfrRtw8= X-Received: by 2002:aca:2111:: with SMTP id 17-v6mr971046oiz.241.1535421315824; Mon, 27 Aug 2018 18:55:15 -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.55.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:55:15 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman Subject: [PATCH] uio: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:48 -0500 Message-Id: <20180828015252.28511-47-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180828015252.28511-1-robh@kernel.org> References: <20180828015252.28511-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_fsl_elbc_gpcm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/uio/uio_fsl_elbc_gpcm.c b/drivers/uio/uio_fsl_elbc_gpcm.c index bbc17effae5e..9cc37fe07d35 100644 --- a/drivers/uio/uio_fsl_elbc_gpcm.c +++ b/drivers/uio/uio_fsl_elbc_gpcm.c @@ -382,8 +382,7 @@ static int uio_fsl_elbc_gpcm_probe(struct platform_device *pdev) } /* set all UIO data */ - if (node->name) - info->mem[0].name = kstrdup(node->name, GFP_KERNEL); + info->mem[0].name = kasprintf(GFP_KERNEL, "%pOFn", node); info->mem[0].addr = res.start; info->mem[0].size = resource_size(&res); info->mem[0].memtype = UIO_MEM_PHYS; -- 2.17.1