From patchwork Fri Nov 23 16:54:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10696189 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9EE913BB for ; Fri, 23 Nov 2018 16:54:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D769E2C1E0 for ; Fri, 23 Nov 2018 16:54:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB8FF2C94D; Fri, 23 Nov 2018 16:54:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 61E7B2C1E0 for ; Fri, 23 Nov 2018 16:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=3ntudBI4BY4wfhVxqoA/n1l60tmB95o5w2lx6rSa8AI=; b=kSD K0/WOfa4iVSaMEHmclpFS4Xe4lJjwhY/a2+GH2ZSazkjTNz9zDlpIJM6ACyehG5LLYPp805l/1GNR vWWVb86NqW7AS/Rjhn5aoh31d5Han2NJY8BS7t+tUsU1UZmcigsEy/IbIsOYs36N45IrmhxL7zSiT 3h4J6s3nvfjO2tvn9W+x2lJ4J9gwjxoJNGiYWoGLSNBSKWF72Vms4Qqe1RD61tpuRGDvFuXykWgc+ IkjiiFrE8T+2jsJZBx/hBdLkEVq6kpde7H946BMtvigpqQUHM+1cgfdgrn3RpNmHuH5NTPax9PIVn 7ryrw+C/OsemGbxeyp/b/zCqNS64V2g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQEj8-0001g0-6N; Fri, 23 Nov 2018 16:54:46 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQEj4-0001ed-Ga for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2018 16:54:44 +0000 Received: by mail-pl1-x642.google.com with SMTP id b5so10881698plr.4 for ; Fri, 23 Nov 2018 08:54:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WW3J8j9iZqfBD+hZUUX3dXfVR9VrJwd4siyzP2VyQYA=; b=hQO6iO8C59nWlhe9pXkXGrxshbku1Fl6s6jjEdYiS+WKFYNXsWkOXf4/6aPBSadsp2 4XeqPFp35cVQa11Tm+iXbYDXTI6ArHM7w0uEHoT/t1mysKdYyVAWN3f+CphGgUsUChH1 Y6NlV+1wTUzSh1hIh4Ya/LAiXu0SmW5Y2+A0dWaICWy637G6qtvHTYyke4eCA1FWzcYS yBucaBjEfm+RyVSxjclX54wNYCSMvVC5ivnWPYkwk5YhNg5kxlK8GEak+TpXf64ImFuB 3+8tGOjrMYLJA+BVWmFFDo7r98grPWGlYu7Uf6HePfORYmstOHA89GfnD/dzGXudr0/O ofAA== 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=WW3J8j9iZqfBD+hZUUX3dXfVR9VrJwd4siyzP2VyQYA=; b=RkQWtCNPUFXfa1be5VIWdMUMr1rASe9kXIWMhfrBmC2MslJI/NCoaWvYa4nLy1n7wx I49Vj3+GDAA15Vfpx9wELHgDouwwAgPGKsI4zyCrha0rMl1uXppIiNouvbB0CHi3ZOi/ 6Lcq5G6YEcMK5iuxv+tJlmG9pm0e/VLDneK+bFbD+Ei1vTbSCLRHAz7gNJ73nMKnm31S IPkeaBvosYCr/fqrtTGO27iFtXu0IoqwQDALLvh206/QJMUhrYChKExYReYMYbHfLXXT j5dtcqn6GQj90J1qep+bLFb/KNaoQlIgWBxEOK8gWi9BxN6Jha+ThFfO/5FKeMJBpblo 2V6g== X-Gm-Message-State: AA+aEWYyljssPOw+Lsl3cpSj1pg4XygGq3kA7Br00Im/iUcNf5yb3Fl2 fWmIS5b3gyWBlvb0mxtqVgU= X-Google-Smtp-Source: AFSGD/VIExSGMpleWx80wksg4Ql7daWG6aG+OpJ51gZQCXuzyK532ZIYUIXobaQHjjdSM0yq8ZpwbA== X-Received: by 2002:a17:902:102b:: with SMTP id b40-v6mr16616767pla.319.1542992068016; Fri, 23 Nov 2018 08:54:28 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id v70sm19118326pfa.152.2018.11.23.08.54.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 08:54:26 -0800 (PST) From: Yangtao Li To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, marc.w.gonzalez@free.fr, mans@mansr.com Subject: [PATCH] irqchhip: Convert to using %pOFn instead of device_node.name Date: Fri, 23 Nov 2018 11:54:18 -0500 Message-Id: <20181123165418.27745-1-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181123_085442_552430_92981504 X-CRM114-Status: GOOD ( 12.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yangtao Li , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Signed-off-by: Yangtao Li --- drivers/irqchip/irq-mscc-ocelot.c | 6 +++--- drivers/irqchip/irq-stm32-exti.c | 6 +++--- drivers/irqchip/irq-tango.c | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/irqchip/irq-mscc-ocelot.c b/drivers/irqchip/irq-mscc-ocelot.c index b63e40c00a02..88143c0b700c 100644 --- a/drivers/irqchip/irq-mscc-ocelot.c +++ b/drivers/irqchip/irq-mscc-ocelot.c @@ -72,7 +72,7 @@ static int __init ocelot_irq_init(struct device_node *node, domain = irq_domain_add_linear(node, OCELOT_NR_IRQ, &irq_generic_chip_ops, NULL); if (!domain) { - pr_err("%s: unable to add irq domain\n", node->name); + pr_err("%pOFn: unable to add irq domain\n", node); return -ENOMEM; } @@ -80,14 +80,14 @@ static int __init ocelot_irq_init(struct device_node *node, "icpu", handle_level_irq, 0, 0, 0); if (ret) { - pr_err("%s: unable to alloc irq domain gc\n", node->name); + pr_err("%pOFn: unable to alloc irq domain gc\n", node); goto err_domain_remove; } gc = irq_get_domain_generic_chip(domain, 0); gc->reg_base = of_iomap(node, 0); if (!gc->reg_base) { - pr_err("%s: unable to map resource\n", node->name); + pr_err("%pOFn: unable to map resource\n", node); ret = -ENOMEM; goto err_gc_free; } diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index 0a2088e12d96..363385750fa7 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -678,8 +678,8 @@ static int __init stm32_exti_init(const struct stm32_exti_drv_data *drv_data, domain = irq_domain_add_linear(node, drv_data->bank_nr * IRQS_PER_BANK, &irq_exti_domain_ops, NULL); if (!domain) { - pr_err("%s: Could not register interrupt domain.\n", - node->name); + pr_err("%pOFn: Could not register interrupt domain.\n", + node); ret = -ENOMEM; goto out_unmap; } @@ -768,7 +768,7 @@ __init stm32_exti_hierarchy_init(const struct stm32_exti_drv_data *drv_data, host_data); if (!domain) { - pr_err("%s: Could not register exti domain.\n", node->name); + pr_err("%pOFn: Could not register exti domain.\n", node); ret = -ENOMEM; goto out_unmap; } diff --git a/drivers/irqchip/irq-tango.c b/drivers/irqchip/irq-tango.c index 580e2d72b9ba..ae28d8648679 100644 --- a/drivers/irqchip/irq-tango.c +++ b/drivers/irqchip/irq-tango.c @@ -184,11 +184,11 @@ static int __init tangox_irq_init(void __iomem *base, struct resource *baseres, irq = irq_of_parse_and_map(node, 0); if (!irq) - panic("%s: failed to get IRQ", node->name); + panic("%pOFn: failed to get IRQ", node); err = of_address_to_resource(node, 0, &res); if (err) - panic("%s: failed to get address", node->name); + panic("%pOFn: failed to get address", node); chip = kzalloc(sizeof(*chip), GFP_KERNEL); chip->ctl = res.start - baseres->start; @@ -196,12 +196,12 @@ static int __init tangox_irq_init(void __iomem *base, struct resource *baseres, dom = irq_domain_add_linear(node, 64, &irq_generic_chip_ops, chip); if (!dom) - panic("%s: failed to create irqdomain", node->name); + panic("%pOFn: failed to create irqdomain", node); err = irq_alloc_domain_generic_chips(dom, 32, 2, node->name, handle_level_irq, 0, 0, 0); if (err) - panic("%s: failed to allocate irqchip", node->name); + panic("%pOFn: failed to allocate irqchip", node); tangox_irq_domain_init(dom); @@ -219,7 +219,7 @@ static int __init tangox_of_irq_init(struct device_node *node, base = of_iomap(node, 0); if (!base) - panic("%s: of_iomap failed", node->name); + panic("%pOFn: of_iomap failed", node); of_address_to_resource(node, 0, &res);