Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754647AbbL3KmB (ORCPT ); Wed, 30 Dec 2015 05:42:01 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:39835 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754454AbbL3Kl7 (ORCPT ); Wed, 30 Dec 2015 05:41:59 -0500 Subject: Re: [PATCH v5 05/20] irqchip: add nps Internal and external irqchips To: Noam Camus , References: <1451222619-3610-1-git-send-email-noamc@ezchip.com> <1451222619-3610-6-git-send-email-noamc@ezchip.com> CC: , , , , Thomas Gleixner , Jason Cooper Newsgroups: gmane.linux.kernel,gmane.linux.kernel.arc From: Vineet Gupta Message-ID: <5683B4E4.40101@synopsys.com> Date: Wed, 30 Dec 2015 16:11:40 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1451222619-3610-6-git-send-email-noamc@ezchip.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.208] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1093 Lines: 38 On Sunday 27 December 2015 06:53 PM, Noam Camus wrote: > From: Noam Camus ... > +static struct irq_domain *nps400_root_domain; This can simply be a local var now ! > +static void nps400_handle_irq(unsigned int hwirq, struct pt_regs *regs) > +{ > + handle_domain_irq(nps400_root_domain, hwirq, regs); > +} > + > +static int __init nps400_of_init(struct device_node *node, > + struct device_node *parent) > +{ > + if (parent) > + panic("DeviceTree incore ic not a root irq controller\n"); > + > + nps400_root_domain = irq_domain_add_linear(node, NR_CPU_IRQS, > + &nps400_irq_ops, NULL); > + > + if (!nps400_root_domain) > + panic("nps400 root irq domain not avail\n"); > + > + set_handle_irq(nps400_handle_irq); > + > + return 0; > +} > +IRQCHIP_DECLARE(ezchip_nps400_ic, "ezchip,nps400-ic", nps400_of_init); > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/