Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1591ybi; Fri, 7 Jun 2019 03:01:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj/909TzvOUfOlv9a3bAbDgdp0JgxS5WHtqK0+TPIfMrSxP78iKSgicN68Bw8uNEdDYiMC X-Received: by 2002:a17:902:5c5:: with SMTP id f63mr54692979plf.176.1559901706106; Fri, 07 Jun 2019 03:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559901706; cv=none; d=google.com; s=arc-20160816; b=tTsLQCC/DZitWaWvhhcwAaxby6fBoEZWt5aUuet2am4A9/flFVNGtEb+Q6gPoTPXYa CHC0HAMopslRkY/Mj+pO78UyOAxvkIPnFksdIeJgh+hVdBIUFAOKt1rTTXnIYX6fB0lG NYqaSm/E4BcSJczipTdxzlHMozw/n/qgsrKJVLIaVy6hkX/YP30J+A2yaftpZspVxp9A 0dc3SfX11AyRZel/hwi39ELkcYhnW3ujF76hdIobfeYxP3ee/qXgoshuw9V7XRWneE8J RmAXriKAVODeJjXIwG1qMjAkXNbLr19wH8i8TLyqbHw4ICL3n5kAUNT6aB1UtnCYfGAN Y3KA== 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=uBVlMMSQVc9bw7GgN/ysB7UOBcFdO3SVT4eB9eVQRdE=; b=BpucWR0GIdohRq65eUFf/BNghpCao5y/aZHzCDopLa18xwBrWT35sAbS24eCtuuFbd i6+2bKRsVrA7O7Idg4Xv5fmtuKVs4j/PFXekZc4Mp95SB7OVcQrHwAECv4Odg735S2jo 4XMzeKHfZYuc0hayuZOZj3jtUelSwemKBBgVUoZTNwt01bg16BKYuM5xkzwim7sOmwu9 IQBu2V8ikE/TKLFGiMEdpayU0buDmZ98rxA/RWYMVP6owU8t4h8NQUwYFbyx6z8+m95d +a/XzeVSnGukFlAE/s81yH37e2ljX41d+dFVpTP42NFtAflt8kveW2lgz/94gSV4Oyr0 /X/w== 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 s3si1316157pji.94.2019.06.07.03.01.28; Fri, 07 Jun 2019 03:01: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728091AbfFGJ7C (ORCPT + 99 others); Fri, 7 Jun 2019 05:59:02 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:51476 "EHLO laurent.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727769AbfFGJ7C (ORCPT ); Fri, 7 Jun 2019 05:59:02 -0400 Received: from ramsan ([84.194.111.163]) by laurent.telenet-ops.be with bizsmtp id Mlz02000n3XaVaC01lz0si; Fri, 07 Jun 2019 11:59:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1hZBeG-00040z-HB; Fri, 07 Jun 2019 11:59:00 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1hZBeG-0002cb-GD; Fri, 07 Jun 2019 11:59:00 +0200 From: Geert Uytterhoeven To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Bartosz Golaszewski Cc: linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/4] irqchip/renesas-irqc: Use proper irq_chip name and parent Date: Fri, 7 Jun 2019 11:58:56 +0200 Message-Id: <20190607095858.10028-3-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190607095858.10028-1-geert+renesas@glider.be> References: <20190607095858.10028-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The irq_chip .name field should contain the device's class (not instance) name, while .parent_device should point to the device itself. Signed-off-by: Geert Uytterhoeven --- drivers/irqchip/irq-renesas-irqc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-renesas-irqc.c b/drivers/irqchip/irq-renesas-irqc.c index cde9f9c0687e94a4..11abc09ef76c62b5 100644 --- a/drivers/irqchip/irq-renesas-irqc.c +++ b/drivers/irqchip/irq-renesas-irqc.c @@ -176,7 +176,7 @@ static int irqc_probe(struct platform_device *pdev) } ret = irq_alloc_domain_generic_chips(p->irq_domain, p->number_of_irqs, - 1, name, handle_level_irq, + 1, "irqc", handle_level_irq, 0, 0, IRQ_GC_INIT_NESTED_LOCK); if (ret) { dev_err(dev, "cannot allocate generic chip\n"); @@ -187,6 +187,7 @@ static int irqc_probe(struct platform_device *pdev) p->gc->reg_base = p->cpu_int_base; p->gc->chip_types[0].regs.enable = IRQC_EN_SET; p->gc->chip_types[0].regs.disable = IRQC_EN_STS; + p->gc->chip_types[0].chip.parent_device = dev; p->gc->chip_types[0].chip.irq_mask = irq_gc_mask_disable_reg; p->gc->chip_types[0].chip.irq_unmask = irq_gc_unmask_enable_reg; p->gc->chip_types[0].chip.irq_set_type = irqc_irq_set_type; -- 2.17.1