From patchwork Sun Mar 17 13:07:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 2283441 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E1E33DF23A for ; Sun, 17 Mar 2013 13:07:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754612Ab3CQNH0 (ORCPT ); Sun, 17 Mar 2013 09:07:26 -0400 Received: from gloria.sntech.de ([95.129.55.99]:45172 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753472Ab3CQNHZ (ORCPT ); Sun, 17 Mar 2013 09:07:25 -0400 Received: from 146-52-57-5-dynip.superkabel.de ([146.52.57.5] helo=marty.localnet) by gloria.sntech.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UHDJ1-0004s7-3A; Sun, 17 Mar 2013 14:07:19 +0100 From: Heiko =?utf-8?q?St=C3=BCbner?= To: Kukjin Kim Subject: [PATCH v3 4/6] irqchip: s3c24xx: use irq_create_mapping for parent irqs Date: Sun, 17 Mar 2013 14:07:17 +0100 User-Agent: KMail/1.13.7 (Linux/3.2.0-3-686-pae; KDE/4.8.4; i686; ; ) Cc: Grant Likely , Rob Herring , Thomas Abraham , devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org References: <201303171404.06146.heiko@sntech.de> In-Reply-To: <201303171404.06146.heiko@sntech.de> MIME-Version: 1.0 Message-Id: <201303171407.17660.heiko@sntech.de> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Getting the parent irq number thru irq_find_mapping will fail for non-legacy irq_domains, as the mapping of the parent irq won't have been created. As irq_create_mapping will just output an already mapped irq number if its already mapped, this does also not influence the legacy mappings. Signed-off-by: Heiko Stuebner --- drivers/irqchip/irq-s3c24xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/irqchip/irq-s3c24xx.c b/drivers/irqchip/irq-s3c24xx.c index a565eb8..1eba289 100644 --- a/drivers/irqchip/irq-s3c24xx.c +++ b/drivers/irqchip/irq-s3c24xx.c @@ -429,7 +429,7 @@ static int s3c24xx_irq_map(struct irq_domain *h, unsigned int virq, parent_irq_data->sub_bits |= (1UL << hw); /* attach the demuxer to the parent irq */ - irqno = irq_find_mapping(parent_intc->domain, + irqno = irq_create_mapping(parent_intc->domain, irq_data->parent_irq); if (!irqno) { pr_err("irq-s3c24xx: could not find mapping for parent irq %lu\n",