From patchwork Mon Jul 20 10:06:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 6826261 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B11229F38B for ; Mon, 20 Jul 2015 10:03:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ECFE12068A for ; Mon, 20 Jul 2015 10:03:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4248320687 for ; Mon, 20 Jul 2015 10:03:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932351AbbGTKDG (ORCPT ); Mon, 20 Jul 2015 06:03:06 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:36125 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932305AbbGTKDD (ORCPT ); Mon, 20 Jul 2015 06:03:03 -0400 Received: by pachj5 with SMTP id hj5so99421530pac.3; Mon, 20 Jul 2015 03:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=uEhWxiCli+cTPNruAsOxIKZXhhOqEzvdKNREzmhKXwM=; b=EyMzx919h2jLVIMvaAmPZdKMdJz0ssBSCq7zcV6WVzfEWcqrb56QK49EvCCn2YHEQC PgjnX1UHyBF7hz0JIhfXIgL+TpiJ3eqoeFZf/bpkrO/sJ02JQZTIRSJdOEuQ3OtRer4k LPUquAiMEeN1NpoXlVBq9o1Cy0iXnjv66jwPCTKVtQ4uUFk182wZOc1yQWOxo3I5oIqx z2PWpYcSRq2yvAw+R/esa964lT3l9G0CsLSGMKNVcPuCl8pmzPR1kpUDLnlPjmp15Fwe w/Fww9PCyv2qvwoddbRviw+TyFnnt1F/djvNFcvA+tNypsPfG2ik3WRcqpK3WYxT8Z5r nY0A== X-Received: by 10.66.222.161 with SMTP id qn1mr59782155pac.66.1437386582079; Mon, 20 Jul 2015 03:03:02 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id ti10sm20882408pab.20.2015.07.20.03.02.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jul 2015 03:03:00 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: jason@lakedaemon.net, geert+renesas@glider.be, linux-kernel@vger.kernel.org, horms@verge.net.au, Magnus Damm , tglx@linutronix.de Date: Mon, 20 Jul 2015 19:06:25 +0900 Message-Id: <20150720100625.2552.63939.sendpatchset@little-apple> In-Reply-To: <20150720100602.2552.85507.sendpatchset@little-apple> References: <20150720100602.2552.85507.sendpatchset@little-apple> Subject: [PATCH 02/03] irqchip: renesas-irqc: Use linear IRQ domain Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Use linear IRQ domain instead of irq_domain_add_simple() that also handles non-DT cases. This reduces the delta between the IRQC code and the generic chip implementation. Signed-off-by: Magnus Damm --- drivers/irqchip/irq-renesas-irqc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0002/drivers/irqchip/irq-renesas-irqc.c +++ work/drivers/irqchip/irq-renesas-irqc.c 2015-07-20 18:42:39.762366518 +0900 @@ -242,8 +242,8 @@ static int irqc_probe(struct platform_de irq_chip->irq_set_wake = irqc_irq_set_wake; irq_chip->flags = IRQCHIP_MASK_ON_SUSPEND; - p->irq_domain = irq_domain_add_simple(pdev->dev.of_node, - p->number_of_irqs, 0, + p->irq_domain = irq_domain_add_linear(pdev->dev.of_node, + p->number_of_irqs, &irqc_irq_domain_ops, p); if (!p->irq_domain) { ret = -ENXIO;